PHP Class Grido\Components\Columns\Editable

Author: Jakub Kopřiva ([email protected])
Author: Petr Bugyík
Inheritance: extends Column
Afficher le fichier Open project: o5/grido

Protected Properties

Свойство Type Description
$editable boolean
$editableCallback for custom handling with edited data; function($id, $newValue, $oldValue, Editable $column) }
$editableControl Custom control for inline editing
$editableDisabled boolean
$editableRowCallback for getting row; function($row, Columns\Editable $column) }
$editableValueCallback for custom value; function($row, Columns\Editable $column) }

Méthodes publiques

Méthode Description
disableEditable ( ) : Editable
getCellPrototype ( mixed $row = NULL ) : Nette\Utils\Html Returns cell prototype ( html tag).
getEditableCallback ( ) : callback
getEditableControl ( ) Returns control for editation.
getEditableRowCallback ( ) : callback
getEditableValueCallback ( ) : callback
getHeaderPrototype ( ) : Nette\Utils\Html Returns header cell prototype ( html tag).
handleEditable ( $id, $newValue, $oldValue )
handleEditableControl ( $value )
isEditable ( ) : boolean
isEditableDisabled ( ) : boolean
setEditable ( callback $callback = NULL, Nette\Forms\IControl $control = NULL ) : Editable Sets column as editable.
setEditableCallback ( callback $callback ) : Editable Sets editable callback.
setEditableControl ( Nette\Forms\IControl $control ) : Editable Sets control for inline editation.
setEditableRowCallback ( callback $callback ) : Editable Sets editable row callback - it's required when used editable collumn with customRenderCallback
setEditableValueCallback ( callback $callback ) : Editable Sets editable value callback.

Méthodes protégées

Méthode Description
setClientSideOptions ( )

Method Details

disableEditable() public méthode

public disableEditable ( ) : Editable
Résultat Editable

getCellPrototype() public méthode

Returns cell prototype ( html tag).
public getCellPrototype ( mixed $row = NULL ) : Nette\Utils\Html
$row mixed
Résultat Nette\Utils\Html

getEditableCallback() public méthode

public getEditableCallback ( ) : callback
Résultat callback

getEditableControl() public méthode

Returns control for editation.
public getEditableControl ( )

getEditableRowCallback() public méthode

public getEditableRowCallback ( ) : callback
Résultat callback

getEditableValueCallback() public méthode

public getEditableValueCallback ( ) : callback
Résultat callback

getHeaderPrototype() public méthode

Returns header cell prototype ( html tag).
public getHeaderPrototype ( ) : Nette\Utils\Html
Résultat Nette\Utils\Html

handleEditable() public méthode

public handleEditable ( $id, $newValue, $oldValue )

handleEditableControl() public méthode

public handleEditableControl ( $value )

isEditable() public méthode

public isEditable ( ) : boolean
Résultat boolean

isEditableDisabled() public méthode

public isEditableDisabled ( ) : boolean
Résultat boolean

setClientSideOptions() protected méthode

protected setClientSideOptions ( )

setEditable() public méthode

Sets column as editable.
public setEditable ( callback $callback = NULL, Nette\Forms\IControl $control = NULL ) : Editable
$callback callback function($id, $newValue, $oldValue, Columns\Editable $column) }
$control Nette\Forms\IControl
Résultat Editable

setEditableCallback() public méthode

Sets editable callback.
public setEditableCallback ( callback $callback ) : Editable
$callback callback function($id, $newValue, $oldValue, Columns\Editable $column) }
Résultat Editable

setEditableControl() public méthode

Sets control for inline editation.
public setEditableControl ( Nette\Forms\IControl $control ) : Editable
$control Nette\Forms\IControl
Résultat Editable

setEditableRowCallback() public méthode

Sets editable row callback - it's required when used editable collumn with customRenderCallback
public setEditableRowCallback ( callback $callback ) : Editable
$callback callback for getting row; function($id, Columns\Editable $column) }
Résultat Editable

setEditableValueCallback() public méthode

Sets editable value callback.
public setEditableValueCallback ( callback $callback ) : Editable
$callback callback for custom value; function($row, Columns\Editable $column) }
Résultat Editable

Property Details

$editable protected_oe property

protected bool $editable
Résultat boolean

$editableCallback protected_oe property

for custom handling with edited data; function($id, $newValue, $oldValue, Editable $column) }
protected $editableCallback

$editableControl protected_oe property

Custom control for inline editing
protected $editableControl

$editableDisabled protected_oe property

protected bool $editableDisabled
Résultat boolean

$editableRowCallback protected_oe property

for getting row; function($row, Columns\Editable $column) }
protected $editableRowCallback

$editableValueCallback protected_oe property

for custom value; function($row, Columns\Editable $column) }
protected $editableValueCallback