Property | Type | Description | |
---|---|---|---|
$filter | array | @persistent | |
$onFetchData | event for modifying data | ||
$onRegistered | event on all grid's components registered | ||
$onRender | event on render | ||
$page | integer | @persistent | |
$perPage | integer | @persistent | |
$sort | array | @persistent |
Property | Type | Description | |
---|---|---|---|
$count | total count of items | ||
$customization | grido\Customization | ||
$data | mixed | ||
$defaultFilter | array | ||
$defaultPerPage | integer | ||
$defaultSort | array | ||
$filterRenderType | string | ||
$model | Grido\DataSources\IDataSource | ||
$options | array | ||
$paginator | Grido\Components\Paginator | ||
$perPageList | array | ||
$primaryKey | string | ||
$propertyAccessor | |||
$rememberState | boolean | ||
$rememberStateSectionName | string | ||
$rowCallback | returns tr html element; function($row, Html $tr) | ||
$strictMode | boolean | ||
$tablePrototype | Nette\Utils\Html | ||
$translator | Nette\Localization\ITranslator |
Method | Description | |
---|---|---|
__getConditions ( array $filter ) : array | ||
__triggerUserNotice ( string $message ) | ||
createTemplate ( ) : Nette\Templating\FileTemplate | ||
getActualFilter ( string $key = NULL ) : mixed | Returns actual filter values. | |
getClientSideOptions ( ) : array | Returns client-side options. | |
getCount ( ) : integer | Returns total count of data. | |
getCustomization ( ) : grido\Customization | ||
getData ( boolean $applyPaging = TRUE, boolean $useCache = TRUE, boolean $fetch = TRUE ) : array | Grido\DataSources\IDataSource | |
Returns fetched data. | |
getDefaultFilter ( ) : array | Returns default filter. | |
getDefaultPerPage ( ) : integer | Returns default per page. | |
getDefaultSort ( ) : array | Returns default sort. | |
getFilterRenderType ( ) : string | ||
getModel ( ) : Grido\DataSources\IDataSource | ||
getPaginator ( ) : Grido\Components\Paginator | ||
getPerPage ( ) : integer | Returns items per page. | |
getPerPageList ( ) : array | Returns list of possible items per page. | |
getPrimaryKey ( ) : string | Returns primary key. | |
getProperty ( array | object $object, string $name ) : mixed | A simple wrapper around symfony/property-access with Nette Database dot notation support. | |
getPropertyAccessor ( ) : |
||
getRememberSession ( boolean $forceStart = FALSE ) : |
Returns remember session for set expiration, etc. | |
getRememberState ( ) : boolean | Returns remember state. | |
getRowCallback ( ) : callback | Returns row callback. | |
getRowPrototype ( mixed $row ) : Nette\Utils\Html | ||
getTablePrototype ( ) : Nette\Utils\Html | Returns table html element of grid. | |
getTranslator ( ) : Grido\Translations\FileTranslator | Returns translator. | |
handleFilter ( Nette\Forms\Controls\SubmitButton $button ) | ||
handlePage ( integer $page ) | ||
handlePerPage ( Nette\Forms\Controls\SubmitButton $button ) | ||
handleRefresh ( ) | Ajax method. | |
handleReset ( Nette\Forms\Controls\SubmitButton $button ) | ||
handleSort ( array $sort ) | ||
isStrictMode ( ) : boolean | ||
loadState ( array $params ) | Loads state informations. | |
reload ( ) : void | Refresh wrapper. | |
render ( ) | ||
saveState ( array &$params, Nette\Application\UI\PresenterComponentReflection $reflection = NULL ) | Saves state informations for next request. | |
setClientSideOptions ( array $options ) : |
Sets client-side options. | |
setCustomization ( grido\Customization $customization ) | ||
setDefaultFilter ( array $filter ) : |
Sets default filtering. | |
setDefaultPerPage ( integer $perPage ) : |
Sets the default number of items per page. | |
setDefaultSort ( array $sort ) : |
Sets default sorting. | |
setFilterRenderType ( string $type ) : |
Sets type of filter rendering. | |
setModel ( mixed $model, boolean $forceWrapper = FALSE ) : |
Sets a model that implements the interface Grido\DataSources\IDataSource or data-source object. | |
setPaginator ( Grido\Components\Paginator $paginator ) : |
Sets custom paginator. | |
setPerPageList ( array $perPageList ) : |
Sets items to per-page select. | |
setPrimaryKey ( string $key ) : |
Sets grid primary key. | |
setRememberState ( boolean $state = TRUE, string $sectionName = NULL ) : |
Sets saving state to session. | |
setRowCallback ( $callback ) : |
Sets callback for customizing tr html object. | |
setStrictMode ( boolean $mode ) : |
Determines whether any user error will cause a notice. | |
setTemplateFile ( string $file ) : |
Sets file name of custom template. | |
setTranslator ( Nette\Localization\ITranslator $translator ) : |
Sets translator. |
Method | Description | |
---|---|---|
applyFiltering ( ) | ||
applyPaging ( ) | ||
applySorting ( ) | ||
createComponentForm ( $name ) | ||
getItemsForCountSelect ( ) : array | ||
saveRememberState ( ) |
public __getConditions ( array $filter ) : array | ||
$filter | array | |
return | array |
public createTemplate ( ) : Nette\Templating\FileTemplate | ||
return | Nette\Templating\FileTemplate |
public getActualFilter ( string $key = NULL ) : mixed | ||
$key | string | |
return | mixed |
public getClientSideOptions ( ) : array | ||
return | array |
public getCustomization ( ) : grido\Customization | ||
return | grido\Customization |
public getDefaultFilter ( ) : array | ||
return | array |
public getDefaultPerPage ( ) : integer | ||
return | integer |
public getModel ( ) : Grido\DataSources\IDataSource | ||
return | Grido\DataSources\IDataSource |
public getPaginator ( ) : Grido\Components\Paginator | ||
return | Grido\Components\Paginator |
public getPerPageList ( ) : array | ||
return | array |
public getPropertyAccessor ( ) : |
||
return |
public getRememberSession ( boolean $forceStart = FALSE ) : |
||
$forceStart | boolean | - if TRUE, session will be started if not |
return |
public getRememberState ( ) : boolean | ||
return | boolean |
public getRowCallback ( ) : callback | ||
return | callback |
public getRowPrototype ( mixed $row ) : Nette\Utils\Html | ||
$row | mixed | item from db |
return | Nette\Utils\Html |
public getTablePrototype ( ) : Nette\Utils\Html | ||
return | Nette\Utils\Html |
public getTranslator ( ) : Grido\Translations\FileTranslator | ||
return | Grido\Translations\FileTranslator |
public handleFilter ( Nette\Forms\Controls\SubmitButton $button ) | ||
$button | Nette\Forms\Controls\SubmitButton |
public handlePerPage ( Nette\Forms\Controls\SubmitButton $button ) | ||
$button | Nette\Forms\Controls\SubmitButton |
public handleReset ( Nette\Forms\Controls\SubmitButton $button ) | ||
$button | Nette\Forms\Controls\SubmitButton |
public setClientSideOptions ( array $options ) : |
||
$options | array | |
return |
public setCustomization ( grido\Customization $customization ) | ||
$customization | grido\Customization |
public setDefaultFilter ( array $filter ) : |
||
$filter | array | |
return |
public setDefaultPerPage ( integer $perPage ) : |
||
$perPage | integer | |
return |
public setDefaultSort ( array $sort ) : |
||
$sort | array | |
return |
public setFilterRenderType ( string $type ) : |
||
$type | string | |
return |
public setPaginator ( Grido\Components\Paginator $paginator ) : |
||
$paginator | Grido\Components\Paginator | |
return |
public setPerPageList ( array $perPageList ) : |
||
$perPageList | array | |
return |
public setPrimaryKey ( string $key ) : |
||
$key | string | |
return |
public setRememberState ( boolean $state = TRUE, string $sectionName = NULL ) : |
||
$state | boolean | |
$sectionName | string | |
return |
public setRowCallback ( $callback ) : |
||
$callback | ||
return |
public setStrictMode ( boolean $mode ) : |
||
$mode | boolean | |
return |
public setTemplateFile ( string $file ) : |
||
$file | string | |
return |
public setTranslator ( Nette\Localization\ITranslator $translator ) : |
||
$translator | Nette\Localization\ITranslator | |
return |
protected Customization,grido $customization | ||
return | grido\Customization |
protected IDataSource,Grido\DataSources $model | ||
return | Grido\DataSources\IDataSource |
protected Paginator,Grido\Components $paginator | ||
return | Grido\Components\Paginator |
protected PropertyAccessor,Symfony\Component\PropertyAccess $propertyAccessor | ||
return |
protected string $rememberStateSectionName | ||
return | string |
protected $rowCallback |
protected Html,Nette\Utils $tablePrototype | ||
return | Nette\Utils\Html |