PHP Class TbFormButtonElement

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

Public Properties

Property 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'.

Public Methods

Method Description
render ( ) : string Run TbButton widget

Protected Methods

Method Description
prepareWidgetOptions ( array $options ) : mixed Prepare the options before running the TbButton widget

Method Details

prepareWidgetOptions() protected method

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

render() public method

Run TbButton widget
public render ( ) : string
return string the rendering result

Property Details

$TbButtonTypes public static property

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

$layoutType public property

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