PHP 클래스 TbFormButtonElement

The buttonElementClass for TbForm Support for Yii formbuilder
저자: Joe Blocher ([email protected])
상속: extends CFormElement
파일 보기 프로젝트 열기: yinhe/yincart

공개 프로퍼티들

프로퍼티 타입 설명
$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