Property | Type | Description | |
---|---|---|---|
$hasActions | boolean | ||
$hasButtons | boolean | ||
$hasColumns | boolean | ||
$hasExport | boolean | ||
$hasFilters | boolean | ||
$hasOperation | boolean |
Method | Description | |
---|---|---|
addActionEvent ( string $name, string $label, callback $onClick = NULL ) : Grido\Components\Actions\Event | ||
addActionHref ( string $name, string $label, string $destination = NULL, array $arguments = [] ) : |
||
addButton ( string $name, string $label = NULL, string $destination = NULL, array $arguments = [] ) : |
||
addColumnDate ( string $name, string $label, string $dateFormat = NULL ) : Grido\Components\Columns\Date | ||
addColumnEmail ( string $name, string $label ) : Grido\Components\Columns\Email | ||
addColumnLink ( string $name, string $label ) : Grido\Components\Columns\Link | ||
addColumnNumber ( string $name, string $label, integer $decimals = NULL, string $decPoint = NULL, string $thousandsSep = NULL ) : Grido\Components\Columns\Number | ||
addColumnText ( string $name, string $label ) : Grido\Components\Columns\Text | ||
addFilterCheck ( string $name, string $label ) : Grido\Components\Filters\Check | ||
addFilterCustom ( string $name, Nette\Forms\IControl $formControl ) : |
||
addFilterDate ( string $name, string $label ) : Grido\Components\Filters\Date | ||
addFilterDateRange ( string $name, string $label ) : Grido\Components\Filters\DateRange | ||
addFilterNumber ( string $name, string $label ) : Grido\Components\Filters\Number | ||
addFilterSelect ( string $name, string $label, array $items = NULL ) : Grido\Components\Filters\Select | ||
addFilterText ( string $name, string $label ) : |
||
getAction ( string $name, boolean $need = TRUE ) : |
Returns action component. | |
getButton ( $name, boolean $need = TRUE ) : |
Returns toolbar button component. | |
getColumn ( string $name, boolean $need = TRUE ) : |
Returns column component. | |
getExport ( boolean $need = TRUE ) : Grido\Components\Export | Returns export component. | |
getFilter ( string $name, boolean $need = TRUE ) : |
Returns filter component. | |
getOperation ( boolean $need = TRUE ) : |
Returns operations component. | |
hasActions ( boolean $useCache = TRUE ) : boolean | ||
hasButtons ( boolean $useCache = TRUE ) : boolean | ||
hasColumns ( boolean $useCache = TRUE ) : boolean | ||
hasExport ( boolean $useCache = TRUE ) : boolean | ||
hasFilters ( boolean $useCache = TRUE ) : boolean | ||
hasOperation ( boolean $useCache = TRUE ) : boolean | ||
setEditableColumns ( callback $callback = NULL ) : |
Sets all columns as editable. | |
setExport ( string $label = NULL ) : Grido\Components\Export | ||
setOperation ( array $operations, callback $onSubmit ) : |
public addColumnEmail ( string $name, string $label ) : Grido\Components\Columns\Email | ||
$name | string | |
$label | string | |
return | Grido\Components\Columns\Email |
public addColumnLink ( string $name, string $label ) : Grido\Components\Columns\Link | ||
$name | string | |
$label | string | |
return | Grido\Components\Columns\Link |
public addColumnNumber ( string $name, string $label, integer $decimals = NULL, string $decPoint = NULL, string $thousandsSep = NULL ) : Grido\Components\Columns\Number | ||
$name | string | |
$label | string | |
$decimals | integer | number of decimal points |
$decPoint | string | separator for the decimal point |
$thousandsSep | string | thousands separator |
return | Grido\Components\Columns\Number |
public addColumnText ( string $name, string $label ) : Grido\Components\Columns\Text | ||
$name | string | |
$label | string | |
return | Grido\Components\Columns\Text |
public addFilterCheck ( string $name, string $label ) : Grido\Components\Filters\Check | ||
$name | string | |
$label | string | |
return | Grido\Components\Filters\Check |
public addFilterCustom ( string $name, Nette\Forms\IControl $formControl ) : |
||
$name | string | |
$formControl | Nette\Forms\IControl | |
return |
public addFilterDate ( string $name, string $label ) : Grido\Components\Filters\Date | ||
$name | string | |
$label | string | |
return | Grido\Components\Filters\Date |
public addFilterDateRange ( string $name, string $label ) : Grido\Components\Filters\DateRange | ||
$name | string | |
$label | string | |
return | Grido\Components\Filters\DateRange |
public addFilterNumber ( string $name, string $label ) : Grido\Components\Filters\Number | ||
$name | string | |
$label | string | |
return | Grido\Components\Filters\Number |
public addFilterText ( string $name, string $label ) : |
||
$name | string | |
$label | string | |
return |
public getOperation ( boolean $need = TRUE ) : |
||
$need | boolean | |
return |
public hasActions ( boolean $useCache = TRUE ) : boolean | ||
$useCache | boolean | |
return | boolean |
public hasButtons ( boolean $useCache = TRUE ) : boolean | ||
$useCache | boolean | |
return | boolean |
public hasColumns ( boolean $useCache = TRUE ) : boolean | ||
$useCache | boolean | |
return | boolean |
public hasFilters ( boolean $useCache = TRUE ) : boolean | ||
$useCache | boolean | |
return | boolean |
public hasOperation ( boolean $useCache = TRUE ) : boolean | ||
$useCache | boolean | |
return | boolean |
public setEditableColumns ( callback $callback = NULL ) : |
||
$callback | callback | function($id, $newValue, $oldValue, Editable $column) } |
return |
public setOperation ( array $operations, callback $onSubmit ) : |
||
$operations | array | |
$onSubmit | callback | - callback after operation submit |
return |