Property | Type | Description | |
---|---|---|---|
$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. |
Method | Description | |
---|---|---|
init ( ) | Initializes the widget. | |
run ( ) : string | Executes the widget. |
Method | Description | |
---|---|---|
renderItems ( ) : string | Renders a list representing the single button items. |
protected renderItems ( ) : string | ||
return | string |
public $buttonEncodeLabel |
public $buttonIcon |
public $buttonTagName |
public $clickToToggle |
public $encodeLabels |
public $items |
public $itemsContainerOptions |