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

Namespaces

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

Classes

  • Action
  • Event
  • Href

Class Action

Action on one row.

Nette\Application\UI\PresenterComponent
Extended by Grido\Components\Component
Extended by Grido\Components\Actions\Action

Direct known subclasses

Grido\Components\Actions\Event, Grido\Components\Actions\Href

Abstract
Namespace: Grido\Components\Actions
Package: Grido\Components\Actions
Author: Petr Bugyík
Located at Components/Actions/Action.php

Methods summary

public
# __construct( Grido\Grid $grid, string $name, string $label )

Parameters

$grid
$name
$label
public Grido\Components\Actions\Action
# setElementPrototype( Nette\Utils\Html $elementPrototype )

Sets html element.

Sets html element.

Parameters

$elementPrototype

Returns

Grido\Components\Actions\Action
public Grido\Components\Actions\Action
# setCustomRender( callable $callback )

Sets callback for custom rendering.

Sets callback for custom rendering.

Parameters

$callback

Returns

Grido\Components\Actions\Action
public Grido\Components\Actions\Action
# setPrimaryKey( string $primaryKey )

Sets primary key.

Sets primary key.

Parameters

$primaryKey

Returns

Grido\Components\Actions\Action
public Grido\Components\Actions\Action
# setDisable( callable $callback )

Sets callback for disable. Callback should return TRUE if the action is not allowed for current item.

Sets callback for disable. Callback should return TRUE if the action is not allowed for current item.

Parameters

$callback

Returns

Grido\Components\Actions\Action
public Grido\Components\Actions\Action
# setConfirm( string|callable $confirm )

Sets client side confirm.

Sets client side confirm.

Parameters

$confirm

Returns

Grido\Components\Actions\Action
public Grido\Components\Actions\Action
# setIcon( string $name )

Sets name of icon.

Sets name of icon.

Parameters

$name

Returns

Grido\Components\Actions\Action
public Grido\Components\Actions\Action
# setOption( string $key, mixed $value )

Sets user-specific option.

Sets user-specific option.

Parameters

$key
$value

Returns

Grido\Components\Actions\Action
public Nette\Utils\Html
# getElementPrototype( )

Returns element prototype ( html tag).

Returns element prototype ( html tag).

Returns

Nette\Utils\Html

Throws

Exception
public mixed
# getOption( string $key, mixed $default = NULL )

Returns user-specific option.

Returns user-specific option.

Parameters

$key
$default

Returns

mixed
public array
# getOptions( )

Returns user-specific options.

Returns user-specific options.

Returns

array
public
# render( mixed $row )

Parameters

$row

Throws

InvalidArgumentException

Methods inherited from Grido\Components\Component

addComponentToGrid(), getForm(), getGrid(), getPropertyAccessor(), translate()

Magic methods summary

Constants summary

string ID
# 'actions'

Properties summary

protected Nette\Utils\Html $elementPrototype

html tag

html tag

#
protected callable $customRender

for custom rendering

for custom rendering

#
protected string $primaryKey
  • name of primary key f.e.: link->('Article:edit', array($primaryKey => 1))
  • name of primary key f.e.: link->('Article:edit', array($primaryKey => 1))
#
protected callable $disable

for disabling

for disabling

#
protected string $options
#

Properties inherited from Grido\Components\Component

$form, $grid, $label, $propertyAccessor, $type

Magic properties

public string $primaryKey
public string $options
public read-only Nette\Utils\Html $element
public write-only Nette\Utils\Html $elementPrototype
public write-only callable $customRender
public write-only callable $disable

Magic properties inherited from Grido\Components\Component

$form, $grid, $label, $type

Grido@master API documentation generated by ApiGen