class ActionsBlock implements BlockContract

Properties

protected string|null $blockId

A string acting as a unique identifier for a block.

protected ElementContract[] $elements

An array of interactive element objects - buttons, select menus, overflow menus, or date pickers.

Methods

id(string $id)

Set the block identifier.

button(string $text)

Add a button element to the block.

staticSelect(string $text)

Add a static select menu to the block.

usersSelect(string $text)

Add a users select menu to the block.

array
toArray()

Get the instance as an array.

Details

at line 39
ActionsBlock id(string $id)

Set the block identifier.

Parameters

string $id

Return Value

ActionsBlock

at line 49
ButtonElement button(string $text)

Add a button element to the block.

Parameters

string $text

Return Value

ButtonElement

at line 59
StaticSelectElement staticSelect(string $text)

Add a static select menu to the block.

Parameters

string $text

Return Value

StaticSelectElement

at line 69
UsersSelectElement usersSelect(string $text)

Add a users select menu to the block.

Parameters

string $text

Return Value

UsersSelectElement

at line 79
array toArray()

Get the instance as an array.

Return Value

array