Свойство | Type | Description | ||
---|---|---|---|---|
$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 |
Méthode | Description | ||
---|---|---|---|
__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 ) : |
Méthode | Description | |
---|---|---|
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 | |
Résultat | mixed |
protected formatValue ( mixed $value ) : mixed | ||
$value | mixed | |
Résultat | mixed |
public getCellPrototype ( mixed $row = NULL ) : Nette\Utils\Html | ||
$row | mixed | |
Résultat | Nette\Utils\Html |
public getCustomRenderVariables ( ) : array | ||
Résultat | array |
public getHeaderPrototype ( ) : Nette\Utils\Html | ||
Résultat | Nette\Utils\Html |
public renderExport ( mixed $row ) : string | ||
$row | mixed | |
Résultat | string |
public setCellCallback ( callback $callback ) : |
||
$callback | callback | |
Résultat |
public setCustomRender ( mixed $callback, array $variables = [] ) : |
||
$callback | mixed | callback or string for name of template filename |
$variables | array | - template variables |
Résultat |
public setCustomRenderExport ( mixed $callback ) : |
||
$callback | mixed | | |
Résultat |
public setDefaultSort ( string $dir ) : |
||
$dir | string | |
Résultat |
public setFilterCheck ( ) : Grido\Components\Filters\Check | ||
Résultat | Grido\Components\Filters\Check |
public setFilterCustom ( Nette\Forms\IControl $formControl ) : |
||
$formControl | Nette\Forms\IControl | |
Résultat |
public setFilterDate ( ) : Grido\Components\Filters\Date | ||
Résultat | Grido\Components\Filters\Date |
public setFilterDateRange ( ) : Grido\Components\Filters\DateRange | ||
Résultat | Grido\Components\Filters\DateRange |
public setFilterNumber ( ) : Grido\Components\Filters\Number | ||
Résultat | Grido\Components\Filters\Number |
public setFilterSelect ( array $items = NULL ) : Grido\Components\Filters\Select | ||
$items | array | |
Résultat | Grido\Components\Filters\Select |
public setFilterText ( ) : |
||
Résultat |
public setReplacement ( array $replacement ) : |
||
$replacement | array | array('pattern' => 'replacement') |
Résultat |
public setSortable ( boolean $sortable = TRUE ) : |
||
$sortable | boolean | |
Résultat |
protected $cellCallback |
protected $customRenderVariables |