PHP Класс TbFormButtonElement

The buttonElementClass for TbForm Support for Yii formbuilder
Автор: Joe Blocher ([email protected])
Наследование: extends CFormElement
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$TbButtonTypes Core button types (alias=>CHtml method name)
$layoutType the button layout: set as TbButton->type in function render() Valid values are 'primary', 'info', 'success', 'warning', 'danger' and 'inverse'.

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

Метод Описание
render ( ) : string Run TbButton widget

Защищенные методы

Метод Описание
prepareWidgetOptions ( array $options ) : mixed Prepare the options before running the TbButton widget

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

prepareWidgetOptions() защищенный Метод

Map Yii formBuilder compatible: $this->type => TbButton->buttonType $this->layoutType => TbButton->type
protected prepareWidgetOptions ( array $options ) : mixed
$options array
Результат mixed

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

Run TbButton widget
public render ( ) : string
Результат string the rendering result

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

$TbButtonTypes публичное статическое свойство

Core button types (alias=>CHtml method name)
public static $TbButtonTypes

$layoutType публичное свойство

the button layout: set as TbButton->type in function render() Valid values are 'primary', 'info', 'success', 'warning', 'danger' and 'inverse'.
public $layoutType