프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 |
메소드 | 설명 | |
---|---|---|
__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. |
메소드 | 설명 | |
---|---|---|
applyFiltering ( ) | ||
applyPaging ( ) | ||
applySorting ( ) | ||
createComponentForm ( $name ) | ||
getItemsForCountSelect ( ) : array | ||
saveRememberState ( ) |
public createTemplate ( ) : Nette\Templating\FileTemplate | ||
리턴 | Nette\Templating\FileTemplate |
public getActualFilter ( string $key = NULL ) : mixed | ||
$key | string | |
리턴 | mixed |
public getClientSideOptions ( ) : array | ||
리턴 | array |
public getDefaultPerPage ( ) : integer | ||
리턴 | integer |
public getModel ( ) : Grido\DataSources\IDataSource | ||
리턴 | Grido\DataSources\IDataSource |
public getPaginator ( ) : Grido\Components\Paginator | ||
리턴 | Grido\Components\Paginator |
public getPerPageList ( ) : array | ||
리턴 | array |
public getPropertyAccessor ( ) : |
||
리턴 |
public getRememberSession ( boolean $forceStart = FALSE ) : |
||
$forceStart | boolean | - if TRUE, session will be started if not |
리턴 |
public getRowPrototype ( mixed $row ) : Nette\Utils\Html | ||
$row | mixed | item from db |
리턴 | Nette\Utils\Html |
public getTablePrototype ( ) : Nette\Utils\Html | ||
리턴 | Nette\Utils\Html |
public getTranslator ( ) : Grido\Translations\FileTranslator | ||
리턴 | 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 | |
리턴 |
public setCustomization ( grido\Customization $customization ) | ||
$customization | grido\Customization |
public setDefaultFilter ( array $filter ) : |
||
$filter | array | |
리턴 |
public setDefaultPerPage ( integer $perPage ) : |
||
$perPage | integer | |
리턴 |
public setDefaultSort ( array $sort ) : |
||
$sort | array | |
리턴 |
public setFilterRenderType ( string $type ) : |
||
$type | string | |
리턴 |
public setPaginator ( Grido\Components\Paginator $paginator ) : |
||
$paginator | Grido\Components\Paginator | |
리턴 |
public setPerPageList ( array $perPageList ) : |
||
$perPageList | array | |
리턴 |
public setPrimaryKey ( string $key ) : |
||
$key | string | |
리턴 |
public setRememberState ( boolean $state = TRUE, string $sectionName = NULL ) : |
||
$state | boolean | |
$sectionName | string | |
리턴 |
public setRowCallback ( $callback ) : |
||
$callback | ||
리턴 |
public setStrictMode ( boolean $mode ) : |
||
$mode | boolean | |
리턴 |
public setTemplateFile ( string $file ) : |
||
$file | string | |
리턴 |
public setTranslator ( Nette\Localization\ITranslator $translator ) : |
||
$translator | Nette\Localization\ITranslator | |
리턴 |
protected Paginator,Grido\Components $paginator | ||
리턴 | Grido\Components\Paginator |
protected PropertyAccessor,Symfony\Component\PropertyAccess $propertyAccessor | ||
리턴 |