- deprecated This class is deprecated in favour of AbstractStaticSelect since 2.2.0 and will be removed in a future release.
- All
- self
- Maknz\Slack\BlockElement\AbstractStaticSelect
- Maknz\Slack\BlockElement\Options
- Maknz\Slack\BlockElement\Confirmable
- Maknz\Slack\BlockElement
- Maknz\Slack\Payload
Methods |
public Maknz\Slack\Payload::__construct(array $attributes) Instantiate a new payload.
|
public Maknz\Slack\BlockElement\AbstractStaticSelect::addOption( $option) Add an option to the block.
|
public Maknz\Slack\BlockElement\AbstractStaticSelect::addOptionGroup( $group) Add an option group to the block.
|
public Maknz\Slack\BlockElement\AbstractStaticSelect::clearAllOptions() Clear options and option groups.
|
public Maknz\Slack\BlockElement\AbstractStaticSelect::clearOptionGroups() Clear option groups in the block.
|
public Maknz\Slack\BlockElement\Options::clearOptions() Clear options available within the block.
|
public static Maknz\Slack\BlockElement::factory( $attributes) Create a Block element from a keyed array of attributes.
|
public Maknz\Slack\BlockElement\Confirmable::getActionId() Get the element's action identifier.
|
public Maknz\Slack\BlockElement\Confirmable::getConfirm() Get the confirmation object.
|
public Maknz\Slack\BlockElement\AbstractStaticSelect::getOptionGroups() Get the option groups.
|
public Maknz\Slack\BlockElement\AbstractStaticSelect::getOptionGroupsAsArrays() Get the option groups in array format.
|
public Maknz\Slack\BlockElement\Options::getOptions() Get options available within the block.
|
public Maknz\Slack\BlockElement\Options::getOptionsAsArrays() Get options available within the block in array format.
|
public Maknz\Slack\BlockElement\AbstractStaticSelect::getPlaceholder() Get the placeholder.
|
public Maknz\Slack\BlockElement::getType() Get the block type.
|
public Maknz\Slack\BlockElement::isValidFor(Maknz Check if an element is valid for a Block.
|
public Maknz\Slack\BlockElement\Confirmable::setActionId( $actionId) Set the element's action identifier.
|
public Maknz\Slack\BlockElement\Confirmable::setConfirm( $confirm) Set the confirmation object.
|
public Maknz\Slack\BlockElement\AbstractStaticSelect::setOptionGroups(array $groups) Set the option groups.
|
public Maknz\Slack\BlockElement\AbstractStaticSelect::setOptions(array $options) Set options available within the block.
|
public Maknz\Slack\BlockElement\AbstractStaticSelect::setPlaceholder( $placeholder) Set the placeholder.
|
public abstract Maknz\Slack\Payload::toArray() Convert this payload to its array representation.
|
Properties |
protected Maknz\Slack\BlockElement\Confirmable::$action_id = NULL Action triggered when the element is interacted with.
|
protected static Maknz\Slack\Payload::$availableAttributes = [] Internal attribute to property map.
|
protected Maknz\Slack\BlockElement\Confirmable::$confirm = NULL Confirmation object.
|
protected Maknz\Slack\BlockElement\AbstractStaticSelect::$option_groups = [] Select option groups.
|
protected Maknz\Slack\BlockElement\Options::$options = [] Options available within the block.
|
protected Maknz\Slack\BlockElement\AbstractStaticSelect::$placeholder = NULL Select placeholder.
|
protected Maknz\Slack\BlockElement::$type = NULL Element type.
|
protected static Maknz\Slack\BlockElement::$validFor = ['button' => ['Button', ['section', 'actions']], 'checkboxes' => ['Checkboxes', ['section', 'actions', 'input']], 'datepicker' => ['DatePicker', ['section', 'actions', 'input']], 'timepicker' => ['Timepicker', ['section', 'actions', 'input']], 'image' => ['Image', ['section', 'context']], 'multi_static_select' => ['MultiStaticSelect', ['section', 'input']], 'multi_external_select' => ['MultiExternalSelect', ['section', 'input']], 'multi_users_select' => ['MultiUsersSelect', ['section', 'input']], 'multi_conversations_select' => ['MultiConversationsSelect', ['section', 'input']], 'multi_channels_select' => ['MultiChannelsSelect', ['section', 'input']], 'overflow' => ['Overflow', ['section', 'actions']], 'plain_text_input' => ['TextInput', ['input']], 'radio_buttons' => ['RadioButtons', ['section', 'actions', 'input']], 'static_select' => ['StaticSelect', ['section', 'actions', 'input']], 'external_select' => ['ExternalSelect', ['section', 'actions', 'input']], 'users_select' => ['UsersSelect', ['section', 'actions', 'input']], 'conversations_select' => ['ConversationsSelect', ['section', 'actions', 'input']], 'channels_select' => ['ChannelsSelect', ['section', 'actions', 'input']], 'plain_text' => ['Text', ['context']], 'mrkdwn' => ['Text', ['context']]] List of blocks each element is valid for.
|
Methods |
protected Maknz\Slack\Payload::fillProperties(array $attributes) : self
|
Properties |
protected static Maknz\Slack\Payload::$availableAttributes = [] Internal attribute to property map.
|
protected static Maknz\Slack\BlockElement::$validFor = ['button' => ['Button', ['section', 'actions']], 'checkboxes' => ['Checkboxes', ['section', 'actions', 'input']], 'datepicker' => ['DatePicker', ['section', 'actions', 'input']], 'timepicker' => ['Timepicker', ['section', 'actions', 'input']], 'image' => ['Image', ['section', 'context']], 'multi_static_select' => ['MultiStaticSelect', ['section', 'input']], 'multi_external_select' => ['MultiExternalSelect', ['section', 'input']], 'multi_users_select' => ['MultiUsersSelect', ['section', 'input']], 'multi_conversations_select' => ['MultiConversationsSelect', ['section', 'input']], 'multi_channels_select' => ['MultiChannelsSelect', ['section', 'input']], 'overflow' => ['Overflow', ['section', 'actions']], 'plain_text_input' => ['TextInput', ['input']], 'radio_buttons' => ['RadioButtons', ['section', 'actions', 'input']], 'static_select' => ['StaticSelect', ['section', 'actions', 'input']], 'external_select' => ['ExternalSelect', ['section', 'actions', 'input']], 'users_select' => ['UsersSelect', ['section', 'actions', 'input']], 'conversations_select' => ['ConversationsSelect', ['section', 'actions', 'input']], 'channels_select' => ['ChannelsSelect', ['section', 'actions', 'input']], 'plain_text' => ['Text', ['context']], 'mrkdwn' => ['Text', ['context']]] List of blocks each element is valid for.
|
Methods |
public static Maknz\Slack\BlockElement::factory( $attributes) Create a Block element from a keyed array of attributes.
|