Property | Type | Description | |
---|---|---|---|
$disabled | whether the button shall be disabled. | ||
$encodeLabel | whether the label should be HTML-encoded. | ||
$icon | the options for the optional 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 ] | ||
$label | the label on the button. If you do not want a label text to be rendered, set this options to "false". | ||
$large | whether the button shall be of larger size. | ||
$tagName | the tag used to render the button. | ||
$type | the type of button to be rendered. The following options are supported: - raised - floating - flat This property defaults to "raised". To set the type, use the corresponding TYPE_* constant of this class. If no type from this range is given, the button will be of the "raised" type. |
Method | Description | |
---|---|---|
init ( ) | Initializes the widget. | |
run ( ) : string | Executes the widget. |
Method | Description | |
---|---|---|
renderIcon ( ) : string | Renders an icon. |
protected renderIcon ( ) : string | ||
return | string | the rendered icon |
public $icon |
public $label |
public $type |