PHP Class Ublaboo\DataGrid\InlineEdit\InlineEdit

Inheritance: extends Nette\Object, use trait Ublaboo\DataGrid\Traits\TButtonTryAddIcon, use trait Ublaboo\DataGrid\Traits\TButtonIcon, use trait Ublaboo\DataGrid\Traits\TButtonClass, use trait Ublaboo\DataGrid\Traits\TButtonTitle, use trait Ublaboo\DataGrid\Traits\TButtonText
Exibir arquivo Open project: ublaboo/datagrid Class Usage Examples

Public Properties

Property Type Description
$onControlAdd callable[]
$onControlAfterAdd callable[]
$onCustomRedraw callable[]
$onSetDefaults callable[]
$onSubmit callable[]

Protected Properties

Property Type Description
$grid Ublaboo\DataGrid\DataGrid
$item_id mixed
$position_top boolean Inline adding - render on the top or in the bottom?
$primary_where_column string | null
$showNonEditingColumns boolean .

Public Methods

Method Description
__construct ( DataGrid $grid, string | null $primary_where_column = NULL )
addControlsClasses ( Container $container )
getItemId ( ) : mixed
getPrimaryWhereColumn ( ) : string
isPositionBottom ( ) : boolean
isPositionTop ( ) : boolean Getter for inline adding
renderButton ( Row $row ) : Nette\Utils\Html Render row item detail button
renderButtonAdd ( ) : Nette\Utils\Html Render row item detail button
setItemId ( mixed $id )
setPositionTop ( boolean $position_top = TRUE ) : static Setter for inline adding position
setShowNonEditingColumns ( boolean $show = TRUE )
showNonEditingColumns ( ) : boolean

Method Details

__construct() public method

public __construct ( DataGrid $grid, string | null $primary_where_column = NULL )
$grid Ublaboo\DataGrid\DataGrid
$primary_where_column string | null

addControlsClasses() public method

public addControlsClasses ( Container $container )
$container Nette\Forms\Container

getItemId() public method

public getItemId ( ) : mixed
return mixed

getPrimaryWhereColumn() public method

public getPrimaryWhereColumn ( ) : string
return string

isPositionBottom() public method

public isPositionBottom ( ) : boolean
return boolean

isPositionTop() public method

Getter for inline adding
public isPositionTop ( ) : boolean
return boolean

renderButton() public method

Render row item detail button
public renderButton ( Row $row ) : Nette\Utils\Html
$row Row
return Nette\Utils\Html

renderButtonAdd() public method

Render row item detail button
public renderButtonAdd ( ) : Nette\Utils\Html
return Nette\Utils\Html

setItemId() public method

public setItemId ( mixed $id )
$id mixed

setPositionTop() public method

Setter for inline adding position
public setPositionTop ( boolean $position_top = TRUE ) : static
$position_top boolean
return static

setShowNonEditingColumns() public method

public setShowNonEditingColumns ( boolean $show = TRUE )
$show boolean

showNonEditingColumns() public method

public showNonEditingColumns ( ) : boolean
return boolean

Property Details

$grid protected_oe property

protected DataGrid,Ublaboo\DataGrid $grid
return Ublaboo\DataGrid\DataGrid

$item_id protected_oe property

protected mixed $item_id
return mixed

$onControlAdd public_oe property

public callable[] $onControlAdd
return callable[]

$onControlAfterAdd public_oe property

public callable[] $onControlAfterAdd
return callable[]

$onCustomRedraw public_oe property

public callable[] $onCustomRedraw
return callable[]

$onSetDefaults public_oe property

public callable[] $onSetDefaults
return callable[]

$onSubmit public_oe property

public callable[] $onSubmit
return callable[]

$position_top protected_oe property

Inline adding - render on the top or in the bottom?
protected bool $position_top
return boolean

$primary_where_column protected_oe property

protected string|NULL $primary_where_column
return string | null

$showNonEditingColumns protected_oe property

.
protected bool $showNonEditingColumns
return boolean