PHP Класс Grido\Components\Button

Автор: Petr Bugyík
Наследование: extends Grido\Components\Component
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$arguments second param for method $presenter->link()
$destination first param for method $presenter->link()
$elementPrototype html tag
$options array

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

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 getArguments ( ) : array
Результат array

getDestination() публичный Метод

public getDestination ( ) : string
Результат string

getElement() публичный Метод

public getElement ( ) : Nette\Utils\Html
Результат Nette\Utils\Html
Returns user-specific option.
public getOption ( string $key, mixed $default = NULL ) : mixed
$key string
$default mixed
Результат mixed

getOptions() публичный Метод

Returns user-specific options.
public getOptions ( ) : array
Результат array

render() публичный Метод

public render ( ) : void
Результат void

setElementPrototype() публичный Метод

Sets html element.
public setElementPrototype ( Nette\Utils\Html $elementPrototype ) : Button
$elementPrototype Nette\Utils\Html
Результат Button

setIcon() публичный Метод

Sets name of icon.
public setIcon ( string $name ) : Action
$name string
Результат Action

setOption() публичный Метод

Sets user-specific option.
public setOption ( string $key, mixed $value ) : Action
$key string
$value mixed
Результат Action

Описание свойств

$arguments защищенное свойство

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

$destination защищенное свойство

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

$elementPrototype защищенное свойство

protected $elementPrototype
protected array $options
Результат array