PHP Class Grido\Components\Button

Author: Petr Bugyík
Inheritance: extends Grido\Components\Component
Afficher le fichier Open project: o5/grido

Protected Properties

Свойство Type Description
$arguments second param for method $presenter->link()
$destination first param for method $presenter->link()
$elementPrototype html tag
$options array

Méthodes publiques

Méthode Description
__construct ( Grid $grid, string $name, string $label = NULL, string $destination = NULL, array $arguments = [] )
getArguments ( ) : array
getDestination ( ) : string
getElement ( ) : Nette\Utils\Html
getElementPrototype ( ) : Nette\Utils\Html Returns element prototype ( html tag).
getOption ( string $key, mixed $default = NULL ) : mixed Returns user-specific option.
getOptions ( ) : array Returns user-specific options.
render ( ) : void
setElementPrototype ( Nette\Utils\Html $elementPrototype ) : Button Sets html element.
setIcon ( string $name ) : Action Sets name of icon.
setOption ( string $key, mixed $value ) : Action Sets user-specific option.

Method Details

__construct() public méthode

public __construct ( Grid $grid, string $name, string $label = NULL, string $destination = NULL, array $arguments = [] )
$grid Grido\Grid
$name string
$label string
$destination string - first param for method $presenter->link()
$arguments array - second param for method $presenter->link()

getArguments() public méthode

public getArguments ( ) : array
Résultat array

getDestination() public méthode

public getDestination ( ) : string
Résultat string

getElement() public méthode

public getElement ( ) : Nette\Utils\Html
Résultat Nette\Utils\Html
Returns user-specific option.
public getOption ( string $key, mixed $default = NULL ) : mixed
$key string
$default mixed
Résultat mixed

getOptions() public méthode

Returns user-specific options.
public getOptions ( ) : array
Résultat array

render() public méthode

public render ( ) : void
Résultat void

setElementPrototype() public méthode

Sets html element.
public setElementPrototype ( Nette\Utils\Html $elementPrototype ) : Button
$elementPrototype Nette\Utils\Html
Résultat Button

setIcon() public méthode

Sets name of icon.
public setIcon ( string $name ) : Action
$name string
Résultat Action

setOption() public méthode

Sets user-specific option.
public setOption ( string $key, mixed $value ) : Action
$key string
$value mixed
Résultat Action

Property Details

$arguments protected_oe property

second param for method $presenter->link()
protected $arguments

$destination protected_oe property

first param for method $presenter->link()
protected $destination

$elementPrototype protected_oe property

protected $elementPrototype
protected array $options
Résultat array