CloneableInstantiable
Methods |
public addOption( $option) Add an option to the select.
|
public addOptionGroup( $group) Add an option group to the select.
|
public clearOptionGroups() Clear option groups in the select.
|
public clearOptions() Clear options in the select.
|
public getInitialOption() Get the intially selected option.
|
public toArray() Convert the block to its array representation.
|
Properties |
protected static $availableAttributes = ['placeholder' => 'placeholder', 'action_id' => 'action_id', 'options' => 'options', 'option_groups' => 'option_groups', 'confirm' => 'confirm'] Internal attribute to property map.
|
protected $hasInitialOption = false Whether one of the options is initially selected.
|
protected $type = 'static_select' Block type.
|
Methods |
Properties |
protected static $availableAttributes = ['placeholder' => 'placeholder', 'action_id' => 'action_id', 'options' => 'options', 'option_groups' => 'option_groups', 'confirm' => 'confirm'] Internal attribute to property map.
|
Methods |