Grido@master
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo
  • Download

Namespaces

  • Grido
    • Components
      • Actions
      • Columns
      • Filters
    • DataSources
    • PropertyAccessors
    • Translations

Classes

  • Column
  • Date
  • Editable
  • Email
  • Link
  • Number
  • Text

Class Editable

An inline editable column.

Nette\Application\UI\PresenterComponent
Extended by Grido\Components\Component
Extended by Grido\Components\Columns\Column
Extended by 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

Abstract
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 Grido\Components\Columns\Editable
# setEditable( callable $callback = NULL, Nette\Forms\IControl $control = NULL )

Sets column as editable.

Sets column as editable.

Parameters

$callback
function($id, $newValue, $oldValue, Columns\Editable $column) {}
$control

Returns

Grido\Components\Columns\Editable
public Grido\Components\Columns\Editable
# setEditableControl( Nette\Forms\IControl $control )

Sets control for inline editation.

Sets control for inline editation.

Parameters

$control

Returns

Grido\Components\Columns\Editable
public Grido\Components\Columns\Editable
# setEditableCallback( callable $callback )

Sets editable callback.

Sets editable callback.

Parameters

$callback
function($id, $newValue, $oldValue, Columns\Editable $column) {}

Returns

Grido\Components\Columns\Editable
public Grido\Components\Columns\Editable
# setEditableValueCallback( callable $callback )

Sets editable value callback.

Sets editable value callback.

Parameters

$callback
for custom value; function($row, Columns\Editable $column) {}

Returns

Grido\Components\Columns\Editable
public Grido\Components\Columns\Editable
# setEditableRowCallback( callable $callback )

Sets editable row callback - it's required when used editable collumn with customRenderCallback

Sets editable row callback - it's required when used editable collumn with customRenderCallback

Parameters

$callback
for getting row; function($id, Columns\Editable $column) {}

Returns

Grido\Components\Columns\Editable
public Grido\Components\Columns\Editable
# disableEditable( )

Returns

Grido\Components\Columns\Editable
protected
# setClientSideOptions( )
public Nette\Utils\Html
# getHeaderPrototype( )

Returns header cell prototype (

html tag).

Returns header cell prototype (

html tag).

Returns

Nette\Utils\Html

Overrides

Grido\Components\Columns\Column::getHeaderPrototype
public Nette\Utils\Html
# getCellPrototype( mixed $row = NULL )

Returns cell prototype (

html tag).

Returns cell prototype (

html tag).

Parameters

$row

Returns

Nette\Utils\Html

Overrides

Grido\Components\Columns\Column::getCellPrototype
public
# getEditableControl( )

Returns control for editation.

Returns control for editation.

Returns

\Nette\Forms\Controls\TextInput

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

Custom control for inline editing

#
protected callable $editableCallback

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

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

#
protected callable $editableValueCallback

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

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

#
protected callable $editableRowCallback

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

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

Magic properties inherited from Grido\Components\Component

$form, $grid, $label, $type

Grido@master API documentation generated by ApiGen