SelectElement
abstract class SelectElement implements AccessoryContract
Properties
| protected string | $actionId | An identifier for this action. |
|
| protected PlainTextOnlyTextObject|null | $placeholder | A plain_text only text object that defines the placeholder text shown on the menu. |
|
| protected bool|null | $focusOnLoad | Indicates whether the element should automatically gain focus when the view loads. |
Methods
id(string $id)
Set the action ID for the select.
placeholder(string $text)
Set the placeholder text.
focus(bool $focus = true)
Set whether the element should automatically gain focus when the view loads.
array
toArray()
Get the instance as an array.
Details
at line 42
SelectElement
id(string $id)
Set the action ID for the select.
at line 56
SelectElement
placeholder(string $text)
Set the placeholder text.
at line 66
SelectElement
focus(bool $focus = true)
Set whether the element should automatically gain focus when the view loads.
at line 76
array
toArray()
Get the instance as an array.