+def divider_block():
+ return {
+ "type": "divider"
+ }
+
def text_block(body):
return {
"text": {
"value": name
}
-def input_block(label, name, placeholder):
+def input_block(label, name, placeholder, optional=False):
return {
"type": "input",
"block_id": name,
+ "optional": optional,
"element": {
"type": "plain_text_input",
"action_id": name,