Class Editable
An inline editable column.
- Nette\Application\UI\PresenterComponent
- Grido\Components\Component
- Grido\Components\Columns\Column
- Grido\Components\Columns\Editable
Direct known subclasses
Grido\Components\Columns\Date
,
Grido\Components\Columns\Number
,
Grido\Components\Columns\Text
Indirect known subclasses
Grido\Components\Columns\Email
,
Grido\Components\Columns\Link
Namespace: Grido\Components\Columns
Package: Grido\Components\Columns
Author: Jakub Kopřiva kopriva.jakub@gmail.com
Author: Petr Bugyík
Located at Components/Columns/Editable.php
Methods summary
public
|
#
setEditable( callable $callback = NULL, Nette\Forms\IControl $control = NULL )
Sets column as editable. |
public
|
|
public
|
|
public
|
|
public
|
#
setEditableRowCallback( callable $callback )
Sets editable row callback - it's required when used editable collumn with customRenderCallback |
public
|
|
protected
|
|
public
Nette\Utils\Html
|
|
public
Nette\Utils\Html
|
|
public
|
Methods inherited from Grido\Components\Columns\Column
__construct()
,
applyReplacement()
,
formatValue()
,
getValue()
,
setCellCallback()
,
setColumn()
,
setCustomRender()
,
setCustomRenderExport()
,
setDefaultSort()
,
setFilterCheck()
,
setFilterCustom()
,
setFilterDate()
,
setFilterDateRange()
,
setFilterNumber()
,
setFilterSelect()
,
setFilterText()
,
setReplacement()
,
setSortable()
Methods inherited from Grido\Components\Component
addComponentToGrid()
,
getForm()
,
getGrid()
,
getPropertyAccessor()
,
translate()
Magic methods summary
Constants summary
Constants inherited from Grido\Components\Columns\Column
ID
,
ORDER_ASC
,
ORDER_DESC
,
VALUE_IDENTIFIER
Properties summary
protected
boolean
|
$editable
|
#
FALSE
|
protected
boolean
|
$editableDisabled
|
#
FALSE
|
protected
Nette\Forms\IControl
|
$editableControl
Custom control for inline editing |
|
protected
callable
|
$editableCallback
for custom handling with edited data; function($id, $newValue, $oldValue, Editable $column) {} |
|
protected
callable
|
$editableValueCallback
for custom value; function($row, Columns\Editable $column) {} |
|
protected
callable
|
$editableRowCallback
for getting row; function($row, Columns\Editable $column) {} |
Properties inherited from Grido\Components\Columns\Column
$cellCallback
,
$cellPrototype
,
$column
,
$customRender
,
$customRenderExport
,
$customRenderVariables
,
$headerPrototype
,
$replacements
,
$sort
,
$sortable
Properties inherited from Grido\Components\Component
$form
,
$grid
,
$label
,
$propertyAccessor
,
$type
Magic properties
public
Nette\Forms\IControl
|
$editableControl
|
public
callable
|
$editableCallback
|
public
callable
|
$editableValueCallback
|
public
callable
|
$editableRowCallback
|
Magic properties inherited from Grido\Components\Columns\Column
$cellCallback
,
$cellPrototype
,
$column
,
$customRender
,
$customRenderExport
,
$customRenderVariables
,
$defaultSorting
,
$headerPrototype
,
$replacements
,
$sort
,
$sortable