Class Grid
Grido - DataGrid for Nette Framework.
- Nette\Application\UI\Control
- Grido\Components\Container
- Grido\Grid
Methods summary
public
|
|
public
|
#
setPropertyAccessor(
Sets a property accesor that implements the interface Grido\PropertyAccessors\IPropertyAccessor. |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
setFilterRenderType( string $type )
Sets type of filter rendering. Defaults inner (Filter::RENDER_INNER) if column does not exist then outer filter (Filter::RENDER_OUTER). |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
setRowCallback( $callback )
Sets callback for customizing tr html object. Callback returns tr html element; function($row, Html $tr). |
public
|
|
public
integer
|
|
public
integer
|
|
public
array
|
|
public
array
|
|
public
array
|
|
public
string
|
|
public
boolean
|
|
public
callable
|
|
public
integer
|
|
public
mixed
|
|
public
array
|
|
public
|
|
public
Nette\Http\SessionSection|null
|
#
getRememberSession( boolean $forceStart = FALSE )
Returns remember session for set expiration, etc. |
public
Nette\Utils\Html
|
|
public
array
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
array
|
Methods inherited from Grido\Components\Container
addActionEvent()
,
addActionHref()
,
addColumnDate()
,
addColumnEmail()
,
addColumnHref()
,
addColumnLink()
,
addColumnMail()
,
addColumnNumber()
,
addColumnText()
,
addFilterCheck()
,
addFilterCustom()
,
addFilterDate()
,
addFilterDateRange()
,
addFilterNumber()
,
addFilterSelect()
,
addFilterText()
,
getAction()
,
getColumn()
,
getExport()
,
getFilter()
,
getOperation()
,
setEditableColumns()
,
setExport()
,
setOperation()
Magic methods summary
Constants summary
string |
BUTTONS
|
#
'buttons'
|
string |
CLIENT_SIDE_OPTIONS
|
#
'grido-options'
|
Properties summary
public
integer
|
$page
@persistent |
#
1
|
public
integer
|
$perPage
@persistent |
|
public
array
|
$sort
@persistent |
#
array()
|
public
array
|
$filter
@persistent |
#
array()
|
public
array
|
$onRegistered
event on all grid's components registered |
|
public
array
|
$onRender
event on render |
|
public
array
|
$onFetchData
event for modifying data |
|
protected
callable
|
$rowCallback
returns tr html element; function($row, Html $tr) |
|
protected
Nette\Utils\Html
|
$tablePrototype
|
|
protected
boolean
|
$rememberState
|
#
FALSE
|
protected
string
|
$primaryKey
|
#
'id'
|
protected
string
|
$filterRenderType
|
|
protected
array
|
$perPageList
|
#
array(10, 20, 30, 50, 100)
|
protected
integer
|
$defaultPerPage
|
#
20
|
protected
array
|
$defaultFilter
|
#
array()
|
protected
array
|
$defaultSort
|
#
array()
|
protected
|
$model
|
|
protected
integer
|
$count
total count of items |
|
protected
mixed
|
$data
|
|
protected
|
$paginator
|
|
protected
Nette\Localization\ITranslator
|
$translator
|
|
protected
|
$propertyAccessor
|
Properties inherited from Grido\Components\Container
$hasActions
,
$hasColumns
,
$hasExport
,
$hasFilters
,
$hasOperation
Magic properties
public
boolean
|
$rememberState
|
public
array
|
$defaultPerPage
|
public
array
|
$defaultFilter
|
public
array
|
$defaultSort
|
public
array
|
$perPageList
|
public
Nette\Localization\ITranslator
|
$translator
|
public
|
$paginator
|
public
string
|
$primaryKey
|
public
string
|
$filterRenderType
|
public
|
$model
|
public
|
$propertyAccessor
|
public
callable
|
$rowCallback
|
public read-only
integer
|
$count
|
public read-only
mixed
|
$data
|
public read-only
Nette\Utils\Html
|
$tablePrototype
|
public write-only
string
|
$templateFile
|