PHP 클래스 macgyer\yii2materializecss\widgets\FixedActionButton

Imagine you have an calendar app with a single "create" button. Your user shall be able to create calendar entries and contacts. Those actions require a dedicated button. For UI reasons you can group both (or as much buttons as you like) single buttons by a "parent" button element. The child buttons can be displayed by hover or click.
또한 보기: http://materializecss.com/buttons.html#floating
저자: Christoph Erdmann ([email protected])
상속: extends macgyer\yii2materializecss\lib\BaseWidget
파일 보기 프로젝트 열기: macgyer/yii2-materializecss

공개 프로퍼티들

프로퍼티 타입 설명
$buttonEncodeLabel whether the label should be HTML-encoded.
$buttonIcon the options for the optional icon. The icon will be rendered by [[Icon|Icon]]. To specify an icon you can use the following parameters: php [ 'name' => 'name of the icon', // required 'position' => 'position of the icon', // optional, 'left' or 'right', defaults to 'left' 'options' => 'the HTML attributes for the img', // optional ]
$buttonLabel the label on the button.
$buttonOptions the HTML attributes for the visible button.
$buttonTagName the tag used to render the button. Should be "a" for correct functionality of [[clickToToggle]] FAB.
$clickToToggle whether the button items are only visible after click.
$encodeLabels whether the labels for the items should be HTML-encoded.
$horizontal whether to display a horizontal FAB.
$items list of button items in the fixed action button. Each element can be either an HTML string or an array representing a single item with the following specification: - label: string, required, the label of the item link - url: string|array, optional, the url of the item link. This will be processed by yii\helpers\Url::to()-detail). - visible: boolean, optional, whether this menu item is visible. Defaults to true. - linkOptions: array, optional, the HTML attributes of the item link. - options: array, optional, the HTML attributes of the item.
$itemsContainerOptions the HTML attributes for the container around the button items.
$options the HTML attributes for the widget container tag.

공개 메소드들

메소드 설명
init ( ) Initializes the widget.
run ( ) : string Executes the widget.

보호된 메소드들

메소드 설명
renderItems ( ) : string Renders a list representing the single button items.

메소드 상세

init() 공개 메소드

Initializes the widget.
public init ( )

renderItems() 보호된 메소드

Renders a list representing the single button items.
protected renderItems ( ) : string
리턴 string

run() 공개 메소드

Executes the widget.
public run ( ) : string
리턴 string the result of widget execution to be outputted.

프로퍼티 상세

$buttonEncodeLabel 공개적으로 프로퍼티

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

$buttonIcon 공개적으로 프로퍼티

the options for the optional icon. The icon will be rendered by [[Icon|Icon]]. To specify an icon you can use the following parameters: php [ 'name' => 'name of the icon', // required 'position' => 'position of the icon', // optional, 'left' or 'right', defaults to 'left' 'options' => 'the HTML attributes for the img', // optional ]
public $buttonIcon

$buttonLabel 공개적으로 프로퍼티

the label on the button.
public $buttonLabel

$buttonOptions 공개적으로 프로퍼티

the HTML attributes for the visible button.
또한 보기: [yii\helpers\BaseHtml::renderTagAttributes()](http://www.yiiframework.com/doc-2.0/yii-helpers-basehtml.html#renderTagAttributes()-detail) for details on how attributes are being rendered.
public $buttonOptions

$buttonTagName 공개적으로 프로퍼티

the tag used to render the button. Should be "a" for correct functionality of [[clickToToggle]] FAB.
public $buttonTagName

$clickToToggle 공개적으로 프로퍼티

whether the button items are only visible after click.
public $clickToToggle

$encodeLabels 공개적으로 프로퍼티

whether the labels for the items should be HTML-encoded.
public $encodeLabels

$horizontal 공개적으로 프로퍼티

whether to display a horizontal FAB.
public $horizontal

$items 공개적으로 프로퍼티

list of button items in the fixed action button. Each element can be either an HTML string or an array representing a single item with the following specification: - label: string, required, the label of the item link - url: string|array, optional, the url of the item link. This will be processed by yii\helpers\Url::to()-detail). - visible: boolean, optional, whether this menu item is visible. Defaults to true. - linkOptions: array, optional, the HTML attributes of the item link. - options: array, optional, the HTML attributes of the item.
public $items

$itemsContainerOptions 공개적으로 프로퍼티

the HTML attributes for the container around the button items.
또한 보기: [yii\helpers\BaseHtml::renderTagAttributes()](http://www.yiiframework.com/doc-2.0/yii-helpers-basehtml.html#renderTagAttributes()-detail) for details on how attributes are being rendered.
public $itemsContainerOptions

$options 공개적으로 프로퍼티

the HTML attributes for the widget container tag.
또한 보기: [yii\helpers\BaseHtml::renderTagAttributes()](http://www.yiiframework.com/doc-2.0/yii-helpers-basehtml.html#renderTagAttributes()-detail) for details on how attributes are being rendered.
public $options