@@ -18,51 +18,52 @@ To learn more about opening configuration modals, [read the documentation](https
1818</div >
1919
2020``` python
21- def edit_handler (ack , step , configure ):
22- ack()
21+ def edit (ack , step , configure ):
22+ ack()
2323
24- blocks = [
25- {
26- " type" : " input" ,
27- " block_id" : " task_name_input" ,
28- " element" : {
29- " type" : " plain_text_input" ,
30- " action_id" : " name" ,
31- " placeholder" : {
32- " type" : " plain_text" ,
33- " text" : " Add a task name" ,
34- },
24+ blocks = [
25+ {
26+ " type" : " input" ,
27+ " block_id" : " task_name_input" ,
28+ " element" : {
29+ " type" : " plain_text_input" ,
30+ " action_id" : " name" ,
31+ " placeholder" : {
32+ " type" : " plain_text" ,
33+ " text" : " Add a task name" ,
34+ },
35+ },
36+ " label" : {
37+ " type" : " plain_text" ,
38+ " text" : " Task name" ,
39+ },
3540 },
36- " label" : {
37- " type" : " plain_text" ,
38- " text" : " Task name" ,
41+ {
42+ " type" : " input" ,
43+ " block_id" : " task_description_input" ,
44+ " element" : {
45+ " type" : " plain_text_input" ,
46+ " action_id" : " description" ,
47+ " placeholder" : {
48+ " type" : " plain_text" ,
49+ " text" : " Add a task description" ,
50+ },
51+ },
52+ " label" : {
53+ " type" : " plain_text" ,
54+ " text" : " Task description" ,
55+ },
3956 },
40- },
41- {
42- " type" : " input" ,
43- " block_id" : " task_description_input" ,
44- " element" : {
45- " type" : " plain_text_input" ,
46- " action_id" : " description" ,
47- " placeholder" : {
48- " type" : " plain_text" ,
49- " text" : " Add a task description" ,
50- },
51- },
52- " label" : {
53- " type" : " plain_text" ,
54- " text" : " Task description" ,
55- },
56- },
5757 ]
5858
5959 configure(blocks = blocks)
60-
61- ws = WorkflowStep(callback_id = " add_task" , config = {
62- " edit" : edit_handler,
63- " save" : save_handler,
64- " execute" : execute_handler,
65- })
60+
61+ ws = WorkflowStep(
62+ callback_id = " add_task" ,
63+ edit = edit,
64+ save = save,
65+ execute = execute,
66+ )
6667
6768app.step(ws)
6869```
0 commit comments