HeaderBlock
Last updated
Creates an HeaderBlock instance.
text
string
true
The text of the header. Maximum length of 150 characters.
callback
function
false
null
An optional callback to configure the new HeaderBlock.
Return: The HeaderBlock instance.
Sets a custom identifier for the HeaderBlock instance.
id
string
true
The custom identifier for the HeaderBlock instance.
Return: The HeaderBlock instance.
Converts the HeaderBlock instance to a serializable format.
No arguments
Return: (struct) A struct representing this HeaderBlock instance.
{
"type": "header",
"text": {
"type": "plain_text",
"text": "My Header"
},
"block_id": "optional"
}Last updated
