"elements": list(elements)
}
-def button_block(label, name):
- return {
+def button_block(label, name, extra=None):
+
+ block = {
"type": "button",
"text": {
"type": "plain_text",
"value": name
}
+ if extra:
+ block['action_id'] = extra
+
+ return block
+
def accessory_block(main, accessory):
return {
**main,