14 def section_block(block, block_id=None):
22 block['block_id'] = block_id
26 def actions_block(*elements):
29 "elements": list(elements)
32 def button_block(label, name, extra=None):
45 block['action_id'] = extra
49 def accessory_block(main, accessory):
57 def input_block(label, name, placeholder, optional=False):
63 "type": "plain_text_input",
76 def multi_select_block(label, name, placeholder, options, default=None):
80 "type": "multi_static_select",
92 } for option in options
96 return accessory_block(
97 section_block(text_block("*{}*".format(label)), block_id=name),