Свойство | 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 |
Свойство | 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 |
Méthode | 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. |
Méthode | Description | |
---|---|---|
applyFiltering ( ) | ||
applyPaging ( ) | ||
applySorting ( ) | ||
createComponentForm ( $name ) | ||
getItemsForCountSelect ( ) : array | ||
saveRememberState ( ) |
public __getConditions ( array $filter ) : array | ||
$filter | array | |
Résultat | array |
public createTemplate ( ) : Nette\Templating\FileTemplate | ||
Résultat | Nette\Templating\FileTemplate |
public getActualFilter ( string $key = NULL ) : mixed | ||
$key | string | |
Résultat | mixed |
public getClientSideOptions ( ) : array | ||
Résultat | array |
public getCustomization ( ) : grido\Customization | ||
Résultat | grido\Customization |
public getDefaultFilter ( ) : array | ||
Résultat | array |
public getDefaultPerPage ( ) : integer | ||
Résultat | integer |
public getDefaultSort ( ) : array | ||
Résultat | array |
protected getItemsForCountSelect ( ) : array | ||
Résultat | array |
public getModel ( ) : Grido\DataSources\IDataSource | ||
Résultat | Grido\DataSources\IDataSource |
public getPaginator ( ) : Grido\Components\Paginator | ||
Résultat | Grido\Components\Paginator |
public getPerPage ( ) : integer | ||
Résultat | integer |
public getPerPageList ( ) : array | ||
Résultat | array |
public getPrimaryKey ( ) : string | ||
Résultat | string |
public getPropertyAccessor ( ) : |
||
Résultat |
public getRememberSession ( boolean $forceStart = FALSE ) : |
||
$forceStart | boolean | - if TRUE, session will be started if not |
Résultat |
public getRememberState ( ) : boolean | ||
Résultat | boolean |
public getRowCallback ( ) : callback | ||
Résultat | callback |
public getRowPrototype ( mixed $row ) : Nette\Utils\Html | ||
$row | mixed | item from db |
Résultat | Nette\Utils\Html |
public getTablePrototype ( ) : Nette\Utils\Html | ||
Résultat | Nette\Utils\Html |
public getTranslator ( ) : Grido\Translations\FileTranslator | ||
Résultat | 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 | |
Résultat |
public setCustomization ( grido\Customization $customization ) | ||
$customization | grido\Customization |
public setDefaultFilter ( array $filter ) : |
||
$filter | array | |
Résultat |
public setDefaultPerPage ( integer $perPage ) : |
||
$perPage | integer | |
Résultat |
public setDefaultSort ( array $sort ) : |
||
$sort | array | |
Résultat |
public setFilterRenderType ( string $type ) : |
||
$type | string | |
Résultat |
public setPaginator ( Grido\Components\Paginator $paginator ) : |
||
$paginator | Grido\Components\Paginator | |
Résultat |
public setPerPageList ( array $perPageList ) : |
||
$perPageList | array | |
Résultat |
public setPrimaryKey ( string $key ) : |
||
$key | string | |
Résultat |
public setRememberState ( boolean $state = TRUE, string $sectionName = NULL ) : |
||
$state | boolean | |
$sectionName | string | |
Résultat |
public setRowCallback ( $callback ) : |
||
$callback | ||
Résultat |
public setStrictMode ( boolean $mode ) : |
||
$mode | boolean | |
Résultat |
public setTemplateFile ( string $file ) : |
||
$file | string | |
Résultat |
public setTranslator ( Nette\Localization\ITranslator $translator ) : |
||
$translator | Nette\Localization\ITranslator | |
Résultat |
protected Customization,grido $customization | ||
Résultat | grido\Customization |
protected IDataSource,Grido\DataSources $model | ||
Résultat | Grido\DataSources\IDataSource |
protected Paginator,Grido\Components $paginator | ||
Résultat | Grido\Components\Paginator |
protected PropertyAccessor,Symfony\Component\PropertyAccess $propertyAccessor | ||
Résultat |
protected string $rememberStateSectionName | ||
Résultat | string |
protected $rowCallback |
protected Html,Nette\Utils $tablePrototype | ||
Résultat | Nette\Utils\Html |