프로퍼티 | 타입 | 설명 | ||
---|---|---|---|---|
$cellCallback | returns td html element; function($row, Html $td) | |||
$cellPrototype | html tag | |||
$column | string | |||
$customRender | custom rendering | |||
$customRenderExport | custom export rendering | |||
$customRenderVariables | custom rendering template variables | |||
$headerPrototype | html tag | |||
$replacements | of arrays('pattern' => 'replacement') | |||
$sort | string | |||
$sortable | boolean |
메소드 | 설명 | ||
---|---|---|---|
__construct ( |
|||
getCellPrototype ( mixed $row = NULL ) : Nette\Utils\Html | Returns cell prototype ( | html tag). | |
getColumn ( ) : mixed | |||
getCustomRender ( ) : mixed | |||
getCustomRenderVariables ( ) : array | |||
getHeaderPrototype ( ) : Nette\Utils\Html | Returns header cell prototype ( | html tag). | |
getLabel ( ) : mixed | |||
getSort ( ) : string | |||
hasFilter ( ) : boolean | |||
isSortable ( ) : boolean | |||
render ( mixed $row ) : string | |||
renderExport ( mixed $row ) : string | |||
setCellCallback ( callback $callback ) : |
|||
setColumn ( mixed $column ) : |
|||
setCustomRender ( mixed $callback, array $variables = [] ) : |
|||
setCustomRenderExport ( mixed $callback ) : |
|||
setDefaultSort ( string $dir ) : |
|||
setFilterCheck ( ) : Grido\Components\Filters\Check | |||
setFilterCustom ( Nette\Forms\IControl $formControl ) : |
|||
setFilterDate ( ) : Grido\Components\Filters\Date | |||
setFilterDateRange ( ) : Grido\Components\Filters\DateRange | |||
setFilterNumber ( ) : Grido\Components\Filters\Number | |||
setFilterSelect ( array $items = NULL ) : Grido\Components\Filters\Select | |||
setFilterText ( ) : |
|||
setReplacement ( array $replacement ) : |
|||
setSortable ( boolean $sortable = TRUE ) : |
메소드 | 설명 | |
---|---|---|
applyReplacement ( mixed $value ) : mixed | ||
formatValue ( mixed $value ) : mixed | ||
getValue ( mixed $row ) : mixed |
public __construct ( |
||
$grid | ||
$name | string | |
$label | string |
protected applyReplacement ( mixed $value ) : mixed | ||
$value | mixed | |
리턴 | mixed |
public getCellPrototype ( mixed $row = NULL ) : Nette\Utils\Html | ||
$row | mixed | |
리턴 | Nette\Utils\Html |
public getHeaderPrototype ( ) : Nette\Utils\Html | ||
리턴 | Nette\Utils\Html |
public setCellCallback ( callback $callback ) : |
||
$callback | callback | |
리턴 |
public setCustomRender ( mixed $callback, array $variables = [] ) : |
||
$callback | mixed | callback or string for name of template filename |
$variables | array | - template variables |
리턴 |
public setCustomRenderExport ( mixed $callback ) : |
||
$callback | mixed | | |
리턴 |
public setFilterCheck ( ) : Grido\Components\Filters\Check | ||
리턴 | Grido\Components\Filters\Check |
public setFilterCustom ( Nette\Forms\IControl $formControl ) : |
||
$formControl | Nette\Forms\IControl | |
리턴 |
public setFilterDate ( ) : Grido\Components\Filters\Date | ||
리턴 | Grido\Components\Filters\Date |
public setFilterDateRange ( ) : Grido\Components\Filters\DateRange | ||
리턴 | Grido\Components\Filters\DateRange |
public setFilterNumber ( ) : Grido\Components\Filters\Number | ||
리턴 | Grido\Components\Filters\Number |
public setFilterSelect ( array $items = NULL ) : Grido\Components\Filters\Select | ||
$items | array | |
리턴 | Grido\Components\Filters\Select |
public setReplacement ( array $replacement ) : |
||
$replacement | array | array('pattern' => 'replacement') |
리턴 |
public setSortable ( boolean $sortable = TRUE ) : |
||
$sortable | boolean | |
리턴 |
protected $cellCallback |
protected $customRenderVariables |