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.

array
toArray()

Get the instance as an array.

Details

at line 37
ActionsBlock id(string $id)

Set the block identifier.

Parameters

string $id

Return Value

ActionsBlock

at line 47
ButtonElement button(string $text)

Add a button element to the block.

Parameters

string $text

Return Value

ButtonElement

at line 57
array toArray()

Get the instance as an array.

Return Value

array