PHP Class TbFormButtonElement

The buttonElementClass for TbForm Support for Yii formbuilder
Author: Joe Blocher ([email protected])
Inheritance: extends CFormElement
Afficher le fichier Open project: yinhe/yincart

Méthodes publiques

Свойство Type Description
$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'.

Méthodes publiques

Méthode Description
render ( ) : string Run TbButton widget

Méthodes protégées

Méthode Description
prepareWidgetOptions ( array $options ) : mixed Prepare the options before running the TbButton widget

Method Details

prepareWidgetOptions() protected méthode

Map Yii formBuilder compatible: $this->type => TbButton->buttonType $this->layoutType => TbButton->type
protected prepareWidgetOptions ( array $options ) : mixed
$options array
Résultat mixed

render() public méthode

Run TbButton widget
public render ( ) : string
Résultat string the rendering result

Property Details

$TbButtonTypes public_oe static_oe property

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

$layoutType public_oe property

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