PHP 클래스 yii\bootstrap\ButtonDropdown

For example, php a button group using Dropdown widget echo ButtonDropdown::widget([ 'label' => 'Action', 'dropdown' => [ 'items' => [ ['label' => 'DropdownA', 'url' => '/'], ['label' => 'DropdownB', 'url' => '#'], ], ], ]);
또한 보기: http://getbootstrap.com/javascript/#buttons
또한 보기: http://getbootstrap.com/components/#btn-dropdowns
부터: 2.0
저자: Antonio Ramirez ([email protected])
상속: extends yii\bootstrap\Widget
파일 보기 프로젝트 열기: yiisoft/yii2-bootstrap 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$containerOptions the HTML attributes for the container tag. The following special options are recognized: - tag: string, defaults to "div", the name of the container tag.
$dropdown the configuration array for Dropdown.
$dropdownClass name of a class to use for rendering dropdowns withing this widget. Defaults to Dropdown.
$encodeLabel whether the label should be HTML-encoded.
$label the button label
$options the HTML attributes of the button.
$split whether to display a group of split-styled button group.
$tagName the tag to use to render the button

공개 메소드들

메소드 설명
run ( ) Renders the widget.

보호된 메소드들

메소드 설명
renderButton ( ) : string Generates the button dropdown.
renderDropdown ( ) : string Generates the dropdown menu.

메소드 상세

renderButton() 보호된 메소드

Generates the button dropdown.
protected renderButton ( ) : string
리턴 string the rendering result.

renderDropdown() 보호된 메소드

Generates the dropdown menu.
protected renderDropdown ( ) : string
리턴 string the rendering result.

run() 공개 메소드

Renders the widget.
public run ( )

프로퍼티 상세

$containerOptions 공개적으로 프로퍼티

the HTML attributes for the container tag. The following special options are recognized: - tag: string, defaults to "div", the name of the container tag.
또한 보기: yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered.
부터: 2.0.1
public $containerOptions

$dropdown 공개적으로 프로퍼티

the configuration array for Dropdown.
public $dropdown

$dropdownClass 공개적으로 프로퍼티

name of a class to use for rendering dropdowns withing this widget. Defaults to Dropdown.
부터: 2.0.7
public $dropdownClass

$encodeLabel 공개적으로 프로퍼티

whether the label should be HTML-encoded.
public $encodeLabel

$label 공개적으로 프로퍼티

the button label
public $label

$options 공개적으로 프로퍼티

the HTML attributes of the button.
또한 보기: yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered.
public $options

$split 공개적으로 프로퍼티

whether to display a group of split-styled button group.
public $split

$tagName 공개적으로 프로퍼티

the tag to use to render the button
public $tagName