@lowdefy/docs-content 0.0.0-experimental-20260710073520

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (304) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +20 -0
  3. package/content/actions/callapi.md +66 -0
  4. package/content/actions/callmethod.md +41 -0
  5. package/content/actions/copytoclipboard.md +32 -0
  6. package/content/actions/displaymessage.md +53 -0
  7. package/content/actions/downloadcsv.md +89 -0
  8. package/content/actions/fetch.md +50 -0
  9. package/content/actions/geolocationcurrentposition.md +56 -0
  10. package/content/actions/link.md +104 -0
  11. package/content/actions/login.md +85 -0
  12. package/content/actions/logout.md +56 -0
  13. package/content/actions/pdfmake.md +304 -0
  14. package/content/actions/request.md +67 -0
  15. package/content/actions/reset.md +27 -0
  16. package/content/actions/resetvalidation.md +85 -0
  17. package/content/actions/scrollto.md +85 -0
  18. package/content/actions/setdarkmode.md +62 -0
  19. package/content/actions/setfocus.md +33 -0
  20. package/content/actions/setglobal.md +63 -0
  21. package/content/actions/setlocale.md +69 -0
  22. package/content/actions/setstate.md +70 -0
  23. package/content/actions/throw.md +72 -0
  24. package/content/actions/validate.md +87 -0
  25. package/content/actions/wait.md +24 -0
  26. package/content/agents/agent-endpoint-tools.md +190 -0
  27. package/content/agents/agent-mcp-tools.md +124 -0
  28. package/content/agents/agent-multi-agent.md +136 -0
  29. package/content/agents/agent-properties.md +174 -0
  30. package/content/agents/agent-server-hooks.md +336 -0
  31. package/content/agents/agentchat.md +515 -0
  32. package/content/agents/agentconversations.md +148 -0
  33. package/content/concepts/ai-agent-docs.md +190 -0
  34. package/content/concepts/cli.md +213 -0
  35. package/content/concepts/connections-and-requests.md +7 -0
  36. package/content/concepts/custom-html.md +3 -0
  37. package/content/concepts/custom-styling.md +161 -0
  38. package/content/concepts/events-and-actions.md +271 -0
  39. package/content/concepts/hosting-files.md +18 -0
  40. package/content/concepts/i18n.md +320 -0
  41. package/content/concepts/keyboard-shortcuts.md +218 -0
  42. package/content/concepts/layout-overview.md +478 -0
  43. package/content/concepts/lists.md +144 -0
  44. package/content/concepts/logger.md +43 -0
  45. package/content/concepts/lowdefy-schema.md +365 -0
  46. package/content/concepts/menus.md +144 -0
  47. package/content/concepts/module-authoring.md +564 -0
  48. package/content/concepts/modules.md +338 -0
  49. package/content/concepts/operators.md +45 -0
  50. package/content/concepts/overview.md +19 -0
  51. package/content/concepts/references-and-templates.md +207 -0
  52. package/content/concepts/secrets.md +24 -0
  53. package/content/concepts/selectors.md +143 -0
  54. package/content/connections/amazonredshift.md +176 -0
  55. package/content/connections/anthropic.md +232 -0
  56. package/content/connections/awss3.md +313 -0
  57. package/content/connections/azureblobstorage.md +133 -0
  58. package/content/connections/elasticsearch.md +371 -0
  59. package/content/connections/google.md +228 -0
  60. package/content/connections/googlecloudstorage.md +139 -0
  61. package/content/connections/googlesheet.md +313 -0
  62. package/content/connections/knex.md +206 -0
  63. package/content/connections/mariadb.md +177 -0
  64. package/content/connections/mcp.md +134 -0
  65. package/content/connections/mongodb.md +739 -0
  66. package/content/connections/mssql.md +191 -0
  67. package/content/connections/mysql.md +192 -0
  68. package/content/connections/openai-connection.md +228 -0
  69. package/content/connections/postgresql.md +200 -0
  70. package/content/connections/redis.md +116 -0
  71. package/content/connections/sendgridmail.md +94 -0
  72. package/content/connections/smtp.md +149 -0
  73. package/content/connections/sqlite.md +187 -0
  74. package/content/connections/stripe.md +115 -0
  75. package/content/container-blocks/affix.md +413 -0
  76. package/content/container-blocks/alert.md +937 -0
  77. package/content/container-blocks/badge.md +1222 -0
  78. package/content/container-blocks/box.md +1453 -0
  79. package/content/container-blocks/card.md +1200 -0
  80. package/content/container-blocks/carousel.md +2247 -0
  81. package/content/container-blocks/collapse.md +1335 -0
  82. package/content/container-blocks/configprovider.md +1070 -0
  83. package/content/container-blocks/confirmmodal.md +1159 -0
  84. package/content/container-blocks/content.md +597 -0
  85. package/content/container-blocks/descriptions.md +870 -0
  86. package/content/container-blocks/drawer.md +1379 -0
  87. package/content/container-blocks/dropdownmenu.md +643 -0
  88. package/content/container-blocks/flex.md +1510 -0
  89. package/content/container-blocks/footer.md +380 -0
  90. package/content/container-blocks/googlemaps.md +546 -0
  91. package/content/container-blocks/googlemapsheatmap.md +607 -0
  92. package/content/container-blocks/googlemapsscript.md +61 -0
  93. package/content/container-blocks/header.md +302 -0
  94. package/content/container-blocks/label.md +739 -0
  95. package/content/container-blocks/layout.md +604 -0
  96. package/content/container-blocks/masonry.md +1090 -0
  97. package/content/container-blocks/mobilemenu.md +1244 -0
  98. package/content/container-blocks/modal.md +1180 -0
  99. package/content/container-blocks/pageheadermenu.md +614 -0
  100. package/content/container-blocks/pagesidebarlayout.md +438 -0
  101. package/content/container-blocks/pagesidermenu.md +651 -0
  102. package/content/container-blocks/popover.md +1421 -0
  103. package/content/container-blocks/result.md +972 -0
  104. package/content/container-blocks/sider.md +1064 -0
  105. package/content/container-blocks/span.md +747 -0
  106. package/content/container-blocks/spinner.md +267 -0
  107. package/content/container-blocks/splitter.md +1735 -0
  108. package/content/container-blocks/tabs.md +1718 -0
  109. package/content/container-blocks/tooltip.md +1274 -0
  110. package/content/container-blocks/watermark.md +515 -0
  111. package/content/controls/for.md +103 -0
  112. package/content/controls/if.md +107 -0
  113. package/content/controls/log.md +50 -0
  114. package/content/controls/parallel.md +71 -0
  115. package/content/controls/parallel_for.md +36 -0
  116. package/content/controls/reject.md +56 -0
  117. package/content/controls/return.md +66 -0
  118. package/content/controls/set_state.md +98 -0
  119. package/content/controls/switch.md +90 -0
  120. package/content/controls/throw.md +79 -0
  121. package/content/controls/try.md +88 -0
  122. package/content/deployment/docker.md +149 -0
  123. package/content/deployment/node-server.md +27 -0
  124. package/content/deployment/vercel.md +101 -0
  125. package/content/display-blocks/aggrid.md +1459 -0
  126. package/content/display-blocks/anchor.md +336 -0
  127. package/content/display-blocks/avatar.md +1154 -0
  128. package/content/display-blocks/breadcrumb.md +517 -0
  129. package/content/display-blocks/button.md +758 -0
  130. package/content/display-blocks/calendar.md +156 -0
  131. package/content/display-blocks/dangeroushtml.md +314 -0
  132. package/content/display-blocks/dangerousmarkdown.md +423 -0
  133. package/content/display-blocks/diffgit.md +44 -0
  134. package/content/display-blocks/difflist.md +225 -0
  135. package/content/display-blocks/diffsidebyside.md +56 -0
  136. package/content/display-blocks/difftimeline.md +94 -0
  137. package/content/display-blocks/divider.md +406 -0
  138. package/content/display-blocks/download.md +60 -0
  139. package/content/display-blocks/dropdownbutton.md +661 -0
  140. package/content/display-blocks/echart.md +418 -0
  141. package/content/display-blocks/floatbutton.md +545 -0
  142. package/content/display-blocks/html.md +311 -0
  143. package/content/display-blocks/icon.md +717 -0
  144. package/content/display-blocks/img.md +479 -0
  145. package/content/display-blocks/markdown.md +520 -0
  146. package/content/display-blocks/markdownwithcode.md +730 -0
  147. package/content/display-blocks/menu.md +1123 -0
  148. package/content/display-blocks/message.md +941 -0
  149. package/content/display-blocks/notification.md +1410 -0
  150. package/content/display-blocks/paragraph.md +643 -0
  151. package/content/display-blocks/progress.md +818 -0
  152. package/content/display-blocks/qrcode.md +519 -0
  153. package/content/display-blocks/s3download.md +240 -0
  154. package/content/display-blocks/search.md +360 -0
  155. package/content/display-blocks/skeleton.md +272 -0
  156. package/content/display-blocks/skeletonavatar.md +222 -0
  157. package/content/display-blocks/skeletonbutton.md +245 -0
  158. package/content/display-blocks/skeletoninput.md +223 -0
  159. package/content/display-blocks/skeletonparagraph.md +201 -0
  160. package/content/display-blocks/statistic.md +485 -0
  161. package/content/display-blocks/steps.md +585 -0
  162. package/content/display-blocks/tag.md +620 -0
  163. package/content/display-blocks/title.md +654 -0
  164. package/content/display-blocks/tour.md +2359 -0
  165. package/content/input-blocks/autocomplete.md +786 -0
  166. package/content/input-blocks/buttonselector.md +964 -0
  167. package/content/input-blocks/checkboxselector.md +765 -0
  168. package/content/input-blocks/checkboxswitch.md +497 -0
  169. package/content/input-blocks/colorselector.md +884 -0
  170. package/content/input-blocks/daterangeselector.md +777 -0
  171. package/content/input-blocks/dateselector.md +693 -0
  172. package/content/input-blocks/datetimeselector.md +791 -0
  173. package/content/input-blocks/inputgallery.md +528 -0
  174. package/content/input-blocks/monthselector.md +717 -0
  175. package/content/input-blocks/multipleselector.md +1337 -0
  176. package/content/input-blocks/numberinput.md +855 -0
  177. package/content/input-blocks/pagination.md +679 -0
  178. package/content/input-blocks/paragraphinput.md +1664 -0
  179. package/content/input-blocks/passwordinput.md +480 -0
  180. package/content/input-blocks/phonenumberinput.md +688 -0
  181. package/content/input-blocks/radioselector.md +820 -0
  182. package/content/input-blocks/ratingslider.md +684 -0
  183. package/content/input-blocks/s3uploadbutton.md +384 -0
  184. package/content/input-blocks/s3uploaddragger.md +305 -0
  185. package/content/input-blocks/s3uploadphoto.md +288 -0
  186. package/content/input-blocks/segmentedselector.md +782 -0
  187. package/content/input-blocks/selector.md +1162 -0
  188. package/content/input-blocks/switch.md +552 -0
  189. package/content/input-blocks/textarea.md +714 -0
  190. package/content/input-blocks/textinput.md +639 -0
  191. package/content/input-blocks/tiptapinput.md +226 -0
  192. package/content/input-blocks/tiptapmentioninput.md +471 -0
  193. package/content/input-blocks/titleinput.md +1094 -0
  194. package/content/input-blocks/treeinput.md +144 -0
  195. package/content/input-blocks/treemultipleselector.md +162 -0
  196. package/content/input-blocks/treeselector.md +185 -0
  197. package/content/input-blocks/upload.md +149 -0
  198. package/content/input-blocks/uploaddragger.md +85 -0
  199. package/content/input-blocks/uploadphoto.md +84 -0
  200. package/content/input-blocks/weekselector.md +630 -0
  201. package/content/list-blocks/controlledlist.md +498 -0
  202. package/content/list-blocks/list.md +529 -0
  203. package/content/list-blocks/listselector.md +301 -0
  204. package/content/list-blocks/masonrylist.md +230 -0
  205. package/content/migration/upgrade-guide.md +106 -0
  206. package/content/migration/v4-to-v5.md +589 -0
  207. package/content/migration/v5-to-v6.md +36 -0
  208. package/content/operators/_actions.md +58 -0
  209. package/content/operators/_and.md +76 -0
  210. package/content/operators/_api.md +254 -0
  211. package/content/operators/_app.md +114 -0
  212. package/content/operators/_args.md +65 -0
  213. package/content/operators/_array.md +331 -0
  214. package/content/operators/_base64.md +49 -0
  215. package/content/operators/_boolean.md +33 -0
  216. package/content/operators/_build.md +166 -0
  217. package/content/operators/_change_case.md +357 -0
  218. package/content/operators/_date.md +415 -0
  219. package/content/operators/_dayjs.md +128 -0
  220. package/content/operators/_diff.md +61 -0
  221. package/content/operators/_divide.md +32 -0
  222. package/content/operators/_eq.md +52 -0
  223. package/content/operators/_event.md +86 -0
  224. package/content/operators/_function.md +52 -0
  225. package/content/operators/_get.md +92 -0
  226. package/content/operators/_global.md +86 -0
  227. package/content/operators/_gt.md +50 -0
  228. package/content/operators/_gte.md +50 -0
  229. package/content/operators/_hash.md +112 -0
  230. package/content/operators/_if.md +30 -0
  231. package/content/operators/_if_none.md +47 -0
  232. package/content/operators/_index.md +48 -0
  233. package/content/operators/_input.md +86 -0
  234. package/content/operators/_intl.md +135 -0
  235. package/content/operators/_item.md +166 -0
  236. package/content/operators/_js.md +113 -0
  237. package/content/operators/_json.md +120 -0
  238. package/content/operators/_jsonata.md +152 -0
  239. package/content/operators/_locale.md +65 -0
  240. package/content/operators/_location.md +40 -0
  241. package/content/operators/_log.md +22 -0
  242. package/content/operators/_lt.md +50 -0
  243. package/content/operators/_lte.md +50 -0
  244. package/content/operators/_math.md +407 -0
  245. package/content/operators/_media.md +83 -0
  246. package/content/operators/_menu.md +62 -0
  247. package/content/operators/_module.md +340 -0
  248. package/content/operators/_mql.md +95 -0
  249. package/content/operators/_ne.md +62 -0
  250. package/content/operators/_not.md +33 -0
  251. package/content/operators/_number.md +159 -0
  252. package/content/operators/_nunjucks.md +117 -0
  253. package/content/operators/_object.md +253 -0
  254. package/content/operators/_operator.md +33 -0
  255. package/content/operators/_or.md +67 -0
  256. package/content/operators/_product.md +45 -0
  257. package/content/operators/_random.md +90 -0
  258. package/content/operators/_ref.md +80 -0
  259. package/content/operators/_regex.md +69 -0
  260. package/content/operators/_request.md +35 -0
  261. package/content/operators/_request_details.md +29 -0
  262. package/content/operators/_secret.md +56 -0
  263. package/content/operators/_state.md +134 -0
  264. package/content/operators/_step.md +98 -0
  265. package/content/operators/_string.md +327 -0
  266. package/content/operators/_subtract.md +24 -0
  267. package/content/operators/_sum.md +45 -0
  268. package/content/operators/_switch.md +37 -0
  269. package/content/operators/_t.md +96 -0
  270. package/content/operators/_theme.md +65 -0
  271. package/content/operators/_type.md +78 -0
  272. package/content/operators/_uri.md +49 -0
  273. package/content/operators/_url_query.md +92 -0
  274. package/content/operators/_user.md +154 -0
  275. package/content/operators/_uuid.md +118 -0
  276. package/content/operators/_var.md +88 -0
  277. package/content/operators/_yaml.md +96 -0
  278. package/content/other/introduction.md +39 -0
  279. package/content/other/next-auth-providers.md +3 -0
  280. package/content/other/updatesession.md +26 -0
  281. package/content/plugins/plugins-actions.md +80 -0
  282. package/content/plugins/plugins-connections.md +98 -0
  283. package/content/plugins/plugins-dev.md +138 -0
  284. package/content/plugins/plugins-introduction.md +29 -0
  285. package/content/plugins/plugins-operators.md +71 -0
  286. package/content/testing/e2e-auth.md +108 -0
  287. package/content/testing/e2e-configuration.md +107 -0
  288. package/content/testing/e2e-getting-started.md +96 -0
  289. package/content/testing/e2e-introduction.md +53 -0
  290. package/content/testing/e2e-mocking.md +155 -0
  291. package/content/testing/e2e-writing-tests.md +214 -0
  292. package/content/tutorial/tutorial-actions-operators.md +222 -0
  293. package/content/tutorial/tutorial-add-blocks.md +86 -0
  294. package/content/tutorial/tutorial-create-page.md +57 -0
  295. package/content/tutorial/tutorial-display-data-page.md +181 -0
  296. package/content/tutorial/tutorial-next-steps.md +53 -0
  297. package/content/tutorial/tutorial-requests-sql.md +22 -0
  298. package/content/tutorial/tutorial-start.md +71 -0
  299. package/content/user-authentication/auth-providers.md +15 -0
  300. package/content/user-authentication/login-and-logout.md +122 -0
  301. package/content/user-authentication/users-introduction.md +31 -0
  302. package/index.json +2281 -0
  303. package/package.json +34 -0
  304. package/scripts/extractAgentDocs.js +130 -0
@@ -0,0 +1,1159 @@
1
+ # ConfirmModal
2
+
3
+ Modal dialog requiring user confirmation before proceeding.
4
+
5
+ This action cannot be undone.
6
+
7
+ ```yaml
8
+ - id: confirm_basic_trigger
9
+ type: Button
10
+ layout:
11
+ flex: 0 0 auto
12
+ properties:
13
+ title: Open Confirm
14
+ color: primary
15
+ variant: solid
16
+ events:
17
+ onClick:
18
+ - id: confirm_basic_open
19
+ type: CallMethod
20
+ params:
21
+ blockId: confirm_basic
22
+ method: open
23
+ - id: confirm_basic
24
+ type: ConfirmModal
25
+ properties:
26
+ title: Are you sure?
27
+ content: This action cannot be undone.
28
+ ```
29
+
30
+ Do you want to proceed with this action?
31
+
32
+ Your account has been updated successfully.
33
+
34
+ The operation completed successfully.
35
+
36
+ This will overwrite existing data. Are you sure you want to continue?
37
+
38
+ An error occurred while processing your request. Do you want to retry?
39
+
40
+ ```yaml
41
+ - id: confirm_status_confirm_btn
42
+ type: Button
43
+ layout:
44
+ flex: 0 0 auto
45
+ properties:
46
+ title: Confirm
47
+ color: primary
48
+ variant: outlined
49
+ events:
50
+ onClick:
51
+ - id: confirm_status_confirm_open
52
+ type: CallMethod
53
+ params:
54
+ blockId: confirm_status_confirm
55
+ method: open
56
+ - id: confirm_status_info_btn
57
+ type: Button
58
+ layout:
59
+ flex: 0 0 auto
60
+ properties:
61
+ title: Info
62
+ color: blue
63
+ variant: outlined
64
+ events:
65
+ onClick:
66
+ - id: confirm_status_info_open
67
+ type: CallMethod
68
+ params:
69
+ blockId: confirm_status_info
70
+ method: open
71
+ - id: confirm_status_success_btn
72
+ type: Button
73
+ layout:
74
+ flex: 0 0 auto
75
+ properties:
76
+ title: Success
77
+ color: green
78
+ variant: outlined
79
+ events:
80
+ onClick:
81
+ - id: confirm_status_success_open
82
+ type: CallMethod
83
+ params:
84
+ blockId: confirm_status_success
85
+ method: open
86
+ - id: confirm_status_warning_btn
87
+ type: Button
88
+ layout:
89
+ flex: 0 0 auto
90
+ properties:
91
+ title: Warning
92
+ color: orange
93
+ variant: outlined
94
+ events:
95
+ onClick:
96
+ - id: confirm_status_warning_open
97
+ type: CallMethod
98
+ params:
99
+ blockId: confirm_status_warning
100
+ method: open
101
+ - id: confirm_status_error_btn
102
+ type: Button
103
+ layout:
104
+ flex: 0 0 auto
105
+ properties:
106
+ title: Error
107
+ color: danger
108
+ variant: outlined
109
+ events:
110
+ onClick:
111
+ - id: confirm_status_error_open
112
+ type: CallMethod
113
+ params:
114
+ blockId: confirm_status_error
115
+ method: open
116
+ - id: confirm_status_confirm
117
+ type: ConfirmModal
118
+ properties:
119
+ title: Confirm Action
120
+ content: Do you want to proceed with this action?
121
+ status: confirm
122
+ - id: confirm_status_info
123
+ type: ConfirmModal
124
+ properties:
125
+ title: Information
126
+ content: Your account has been updated successfully.
127
+ status: info
128
+ - id: confirm_status_success
129
+ type: ConfirmModal
130
+ properties:
131
+ title: Success
132
+ content: The operation completed successfully.
133
+ status: success
134
+ - id: confirm_status_warning
135
+ type: ConfirmModal
136
+ properties:
137
+ title: Warning
138
+ content: This will overwrite existing data. Are you sure you want to continue?
139
+ status: warning
140
+ - id: confirm_status_error
141
+ type: ConfirmModal
142
+ properties:
143
+ title: Error
144
+ content: An error occurred while processing your request. Do you want to retry?
145
+ status: error
146
+ ```
147
+
148
+ The status of this modal was set at open time via the method args, overriding the default.
149
+
150
+ ```yaml
151
+ - id: confirm_override_info_btn
152
+ type: Button
153
+ layout:
154
+ flex: 0 0 auto
155
+ properties:
156
+ title: Open as Info
157
+ color: blue
158
+ variant: outlined
159
+ events:
160
+ onClick:
161
+ - id: confirm_override_info_open
162
+ type: CallMethod
163
+ params:
164
+ blockId: confirm_override
165
+ method: open
166
+ args:
167
+ status: info
168
+ - id: confirm_override_error_btn
169
+ type: Button
170
+ layout:
171
+ flex: 0 0 auto
172
+ properties:
173
+ title: Open as Error
174
+ color: danger
175
+ variant: outlined
176
+ events:
177
+ onClick:
178
+ - id: confirm_override_error_open
179
+ type: CallMethod
180
+ params:
181
+ blockId: confirm_override
182
+ method: open
183
+ args:
184
+ status: error
185
+ - id: confirm_override_success_btn
186
+ type: Button
187
+ layout:
188
+ flex: 0 0 auto
189
+ properties:
190
+ title: Open as Success
191
+ color: green
192
+ variant: outlined
193
+ events:
194
+ onClick:
195
+ - id: confirm_override_success_open
196
+ type: CallMethod
197
+ params:
198
+ blockId: confirm_override
199
+ method: open
200
+ args:
201
+ status: success
202
+ - id: confirm_override
203
+ type: ConfirmModal
204
+ properties:
205
+ title: Dynamic Status
206
+ content: The status of this modal was set at open time via the method args,
207
+ overriding the default.
208
+ status: confirm
209
+ ```
210
+
211
+ You have unsaved changes. Do you want to save before leaving?
212
+
213
+ ```yaml
214
+ - id: confirm_btn_text_trigger
215
+ type: Button
216
+ layout:
217
+ flex: 0 0 auto
218
+ properties:
219
+ title: Open Custom Buttons
220
+ color: primary
221
+ variant: outlined
222
+ events:
223
+ onClick:
224
+ - id: confirm_btn_text_open
225
+ type: CallMethod
226
+ params:
227
+ blockId: confirm_btn_text
228
+ method: open
229
+ - id: confirm_btn_text
230
+ type: ConfirmModal
231
+ properties:
232
+ title: Save Changes?
233
+ content: You have unsaved changes. Do you want to save before leaving?
234
+ okText: Save
235
+ cancelText: Discard
236
+ ```
237
+
238
+ This item will be permanently removed from the system.
239
+
240
+ Are you absolutely sure you want to delete this project and all its data?
241
+
242
+ ```yaml
243
+ - id: confirm_icon_trigger
244
+ type: Button
245
+ layout:
246
+ flex: 0 0 auto
247
+ properties:
248
+ title: Open with Custom Icon
249
+ color: primary
250
+ variant: outlined
251
+ events:
252
+ onClick:
253
+ - id: confirm_icon_open
254
+ type: CallMethod
255
+ params:
256
+ blockId: confirm_icon
257
+ method: open
258
+ - id: confirm_icon_colored_trigger
259
+ type: Button
260
+ layout:
261
+ flex: 0 0 auto
262
+ properties:
263
+ title: Open with Colored Icon
264
+ color: danger
265
+ variant: outlined
266
+ events:
267
+ onClick:
268
+ - id: confirm_icon_colored_open
269
+ type: CallMethod
270
+ params:
271
+ blockId: confirm_icon_colored
272
+ method: open
273
+ - id: confirm_icon
274
+ type: ConfirmModal
275
+ properties:
276
+ title: Delete Item?
277
+ content: This item will be permanently removed from the system.
278
+ icon: AiOutlineDelete
279
+ - id: confirm_icon_colored
280
+ type: ConfirmModal
281
+ properties:
282
+ title: Danger Zone
283
+ content: Are you absolutely sure you want to delete this project and all its data?
284
+ icon:
285
+ name: AiOutlineWarning
286
+ color: "#ff4d4f"
287
+ size: 22
288
+ ```
289
+
290
+ This confirm modal shows a close (x) button in the top right.
291
+
292
+ Click the mask area outside the modal to dismiss it.
293
+
294
+ This confirm modal has no mask overlay behind it.
295
+
296
+ ```yaml
297
+ - id: confirm_closable_trigger
298
+ type: Button
299
+ layout:
300
+ flex: 0 0 auto
301
+ properties:
302
+ title: Closable
303
+ color: primary
304
+ variant: outlined
305
+ events:
306
+ onClick:
307
+ - id: confirm_closable_open
308
+ type: CallMethod
309
+ params:
310
+ blockId: confirm_closable
311
+ method: open
312
+ - id: confirm_mask_closable_trigger
313
+ type: Button
314
+ layout:
315
+ flex: 0 0 auto
316
+ properties:
317
+ title: Mask Closable
318
+ color: primary
319
+ variant: outlined
320
+ events:
321
+ onClick:
322
+ - id: confirm_mask_closable_open
323
+ type: CallMethod
324
+ params:
325
+ blockId: confirm_mask_closable
326
+ method: open
327
+ - id: confirm_no_mask_trigger
328
+ type: Button
329
+ layout:
330
+ flex: 0 0 auto
331
+ properties:
332
+ title: No Mask
333
+ color: primary
334
+ variant: outlined
335
+ events:
336
+ onClick:
337
+ - id: confirm_no_mask_open
338
+ type: CallMethod
339
+ params:
340
+ blockId: confirm_no_mask
341
+ method: open
342
+ - id: confirm_closable
343
+ type: ConfirmModal
344
+ properties:
345
+ title: Closable Confirm
346
+ content: This confirm modal shows a close (x) button in the top right.
347
+ closable: true
348
+ - id: confirm_mask_closable
349
+ type: ConfirmModal
350
+ properties:
351
+ title: Mask Closable
352
+ content: Click the mask area outside the modal to dismiss it.
353
+ maskClosable: true
354
+ - id: confirm_no_mask
355
+ type: ConfirmModal
356
+ properties:
357
+ title: No Mask
358
+ content: This confirm modal has no mask overlay behind it.
359
+ mask: false
360
+ ```
361
+
362
+ This confirm modal is vertically centered in the viewport.
363
+
364
+ A compact 300px confirm modal.
365
+
366
+ A wider 600px confirm modal with more room for content. Useful for complex messages or forms.
367
+
368
+ ```yaml
369
+ - id: confirm_centered_trigger
370
+ type: Button
371
+ layout:
372
+ flex: 0 0 auto
373
+ properties:
374
+ title: Centered
375
+ color: primary
376
+ variant: outlined
377
+ events:
378
+ onClick:
379
+ - id: confirm_centered_open
380
+ type: CallMethod
381
+ params:
382
+ blockId: confirm_centered
383
+ method: open
384
+ - id: confirm_narrow_trigger
385
+ type: Button
386
+ layout:
387
+ flex: 0 0 auto
388
+ properties:
389
+ title: Narrow (300px)
390
+ color: primary
391
+ variant: outlined
392
+ events:
393
+ onClick:
394
+ - id: confirm_narrow_open
395
+ type: CallMethod
396
+ params:
397
+ blockId: confirm_narrow
398
+ method: open
399
+ - id: confirm_wide_trigger
400
+ type: Button
401
+ layout:
402
+ flex: 0 0 auto
403
+ properties:
404
+ title: Wide (600px)
405
+ color: primary
406
+ variant: outlined
407
+ events:
408
+ onClick:
409
+ - id: confirm_wide_open
410
+ type: CallMethod
411
+ params:
412
+ blockId: confirm_wide
413
+ method: open
414
+ - id: confirm_centered
415
+ type: ConfirmModal
416
+ properties:
417
+ title: Centered Confirm
418
+ content: This confirm modal is vertically centered in the viewport.
419
+ centered: true
420
+ - id: confirm_narrow
421
+ type: ConfirmModal
422
+ properties:
423
+ title: Narrow Confirm
424
+ content: A compact 300px confirm modal.
425
+ width: 300
426
+ - id: confirm_wide
427
+ type: ConfirmModal
428
+ properties:
429
+ title: Wide Confirm
430
+ content: A wider 600px confirm modal with more room for content. Useful for
431
+ complex messages or forms.
432
+ width: 600
433
+ ```
434
+
435
+ This confirm modal uses a custom z-index of 2000, ensuring it appears above other overlays.
436
+
437
+ ```yaml
438
+ - id: confirm_zindex_trigger
439
+ type: Button
440
+ layout:
441
+ flex: 0 0 auto
442
+ properties:
443
+ title: Open Confirm (z-index 2000)
444
+ color: primary
445
+ variant: outlined
446
+ events:
447
+ onClick:
448
+ - id: confirm_zindex_open
449
+ type: CallMethod
450
+ params:
451
+ blockId: confirm_zindex
452
+ method: open
453
+ - id: confirm_zindex
454
+ type: ConfirmModal
455
+ properties:
456
+ title: High Z-Index Confirm
457
+ content: This confirm modal uses a custom z-index of 2000, ensuring it appears
458
+ above other overlays.
459
+ zIndex: 2000
460
+ ```
461
+
462
+ This action will permanently delete the selected items and cannot be undone.
463
+
464
+ Your data will be exported to a CSV file and downloaded.
465
+
466
+ ```yaml
467
+ - id: confirm_ok_btn_trigger
468
+ type: Button
469
+ layout:
470
+ flex: 0 0 auto
471
+ properties:
472
+ title: Open with Danger Ok
473
+ color: danger
474
+ variant: outlined
475
+ events:
476
+ onClick:
477
+ - id: confirm_ok_btn_open
478
+ type: CallMethod
479
+ params:
480
+ blockId: confirm_ok_btn
481
+ method: open
482
+ - id: confirm_icon_btns_trigger
483
+ type: Button
484
+ layout:
485
+ flex: 0 0 auto
486
+ properties:
487
+ title: Open with Icon Buttons
488
+ color: primary
489
+ variant: outlined
490
+ events:
491
+ onClick:
492
+ - id: confirm_icon_btns_open
493
+ type: CallMethod
494
+ params:
495
+ blockId: confirm_icon_btns
496
+ method: open
497
+ - id: confirm_ok_btn
498
+ type: ConfirmModal
499
+ properties:
500
+ title: Delete Permanently?
501
+ content: This action will permanently delete the selected items and cannot be
502
+ undone.
503
+ status: error
504
+ okText: Delete
505
+ okButton:
506
+ danger: true
507
+ cancelText: Keep Items
508
+ - id: confirm_icon_btns
509
+ type: ConfirmModal
510
+ properties:
511
+ title: Export Data?
512
+ content: Your data will be exported to a CSV file and downloaded.
513
+ status: confirm
514
+ okText: Export
515
+ okButton:
516
+ icon: AiOutlineDownload
517
+ cancelText: Cancel
518
+ cancelButton:
519
+ icon: AiOutlineClose
520
+ ```
521
+
522
+ This modal uses style to apply custom CSS directly to the modal element.
523
+
524
+ ```yaml
525
+ - id: confirm_modal_style_trigger
526
+ type: Button
527
+ layout:
528
+ flex: 0 0 auto
529
+ properties:
530
+ title: Open Styled Modal
531
+ color: primary
532
+ variant: outlined
533
+ events:
534
+ onClick:
535
+ - id: confirm_modal_style_open
536
+ type: CallMethod
537
+ params:
538
+ blockId: confirm_modal_style
539
+ method: open
540
+ - id: confirm_modal_style
541
+ type: ConfirmModal
542
+ properties:
543
+ title: Styled Modal
544
+ content: This modal uses style to apply custom CSS directly to the modal element.
545
+ style:
546
+ .element:
547
+ borderRadius: 16
548
+ boxShadow: 0 8px 32px rgba(0, 0, 0, 0.2)
549
+ ```
550
+
551
+ ```yaml
552
+ - id: confirm_content_slot_trigger
553
+ type: Button
554
+ layout:
555
+ flex: 0 0 auto
556
+ properties:
557
+ title: Open with Rich Content
558
+ color: primary
559
+ variant: solid
560
+ events:
561
+ onClick:
562
+ - id: confirm_content_slot_open
563
+ type: CallMethod
564
+ params:
565
+ blockId: confirm_content_slot
566
+ method: open
567
+ - id: confirm_content_slot
568
+ type: ConfirmModal
569
+ properties:
570
+ title: Review Changes
571
+ status: confirm
572
+ width: 500
573
+ blocks:
574
+ - id: confirm_content_slot_desc
575
+ type: Descriptions
576
+ properties:
577
+ size: small
578
+ column: 1
579
+ items:
580
+ - label: File
581
+ value: report-2026-Q1.xlsx
582
+ - label: Size
583
+ value: 2.4 MB
584
+ - label: Modified
585
+ value: March 10, 2026
586
+ - label: Author
587
+ value: Jane Cooper
588
+ ```
589
+
590
+ Your subscription will expire on <b>March 31, 2026</b>. Please <em>renew</em> to avoid service interruption.
591
+
592
+ ```yaml
593
+ - id: confirm_html_trigger
594
+ type: Button
595
+ layout:
596
+ flex: 0 0 auto
597
+ properties:
598
+ title: Open with HTML Content
599
+ color: primary
600
+ variant: outlined
601
+ events:
602
+ onClick:
603
+ - id: confirm_html_open
604
+ type: CallMethod
605
+ params:
606
+ blockId: confirm_html
607
+ method: open
608
+ - id: confirm_html
609
+ type: ConfirmModal
610
+ properties:
611
+ title: <b>Important</b> Notice
612
+ content: Your subscription will expire on <b>March 31, 2026</b>. Please
613
+ <em>renew</em> to avoid service interruption.
614
+ status: warning
615
+ ```
616
+
617
+ Clicking Ok or Cancel will update the state and show a message.
618
+
619
+ ```yaml
620
+ - id: confirm_events_trigger
621
+ type: Button
622
+ layout:
623
+ flex: 0 0 auto
624
+ properties:
625
+ title: Open with Event Actions
626
+ color: primary
627
+ variant: solid
628
+ events:
629
+ onClick:
630
+ - id: confirm_events_open
631
+ type: CallMethod
632
+ params:
633
+ blockId: confirm_events
634
+ method: open
635
+ - id: confirm_events_result
636
+ type: Paragraph
637
+ properties:
638
+ content:
639
+ _if:
640
+ test:
641
+ _not:
642
+ _not:
643
+ _state: confirm_events_action
644
+ then:
645
+ _string.concat:
646
+ - "Last action: "
647
+ - _state: confirm_events_action
648
+ else: Click the button above and choose Ok or Cancel.
649
+ - id: confirm_events
650
+ type: ConfirmModal
651
+ properties:
652
+ title: Confirm with Events
653
+ content: Clicking Ok or Cancel will update the state and show a message.
654
+ okText: Confirm
655
+ events:
656
+ onOpen:
657
+ - id: confirm_events_on_open_set
658
+ type: SetState
659
+ params:
660
+ confirm_events_action: Modal opened...
661
+ onOk:
662
+ - id: confirm_events_on_ok_set
663
+ type: SetState
664
+ params:
665
+ confirm_events_action: Confirmed
666
+ - id: confirm_events_on_ok_msg
667
+ type: DisplayMessage
668
+ params:
669
+ content: Action confirmed successfully.
670
+ status: success
671
+ onCancel:
672
+ - id: confirm_events_on_cancel_set
673
+ type: SetState
674
+ params:
675
+ confirm_events_action: Cancelled
676
+ - id: confirm_events_on_cancel_msg
677
+ type: DisplayMessage
678
+ params:
679
+ content: Action was cancelled.
680
+ status: info
681
+ ```
682
+
683
+ The element CSS key applies Tailwind classes to the modal wrapper. This modal uses rounded-2xl and shadow-2xl on the element key.
684
+
685
+ The body CSS key targets the modal body area. This modal uses bg-bg-layout and p-6 on the body key for a tinted content area.
686
+
687
+ ```yaml
688
+ - id: confirm_css_element_trigger
689
+ type: Button
690
+ layout:
691
+ flex: 0 0 auto
692
+ properties:
693
+ title: Styled Element
694
+ color: primary
695
+ variant: outlined
696
+ events:
697
+ onClick:
698
+ - id: confirm_css_element_open
699
+ type: CallMethod
700
+ params:
701
+ blockId: confirm_css_element
702
+ method: open
703
+ - id: confirm_css_body_trigger
704
+ type: Button
705
+ layout:
706
+ flex: 0 0 auto
707
+ properties:
708
+ title: Styled Body
709
+ color: primary
710
+ variant: outlined
711
+ events:
712
+ onClick:
713
+ - id: confirm_css_body_open
714
+ type: CallMethod
715
+ params:
716
+ blockId: confirm_css_body
717
+ method: open
718
+ - id: confirm_css_element
719
+ type: ConfirmModal
720
+ class:
721
+ element: rounded-2xl shadow-2xl
722
+ properties:
723
+ title: Styled Element
724
+ content: The element CSS key applies Tailwind classes to the modal wrapper. This
725
+ modal uses rounded-2xl and shadow-2xl on the element key.
726
+ - id: confirm_css_body
727
+ type: ConfirmModal
728
+ class:
729
+ body: bg-bg-layout p-6
730
+ properties:
731
+ title: Styled Body
732
+ content: The body CSS key targets the modal body area. This modal uses
733
+ bg-bg-layout and p-6 on the body key for a tinted content area.
734
+ ```
735
+
736
+ This modal uses theme tokens to set a custom header background, title color, content background, and footer background.
737
+
738
+ This modal uses confirmBodyPadding and confirmBtnsMarginTop tokens for tighter spacing. The confirmIconMarginInlineEnd adjusts icon-to-text distance.
739
+
740
+ This modal uses borderRadiusLG for extra-rounded corners and colorBgMask for a tinted overlay backdrop.
741
+
742
+ ```yaml
743
+ - id: confirm_theme_colors_trigger
744
+ type: Button
745
+ layout:
746
+ flex: 0 0 auto
747
+ properties:
748
+ title: Custom Colors
749
+ color: primary
750
+ variant: outlined
751
+ events:
752
+ onClick:
753
+ - id: confirm_theme_colors_open
754
+ type: CallMethod
755
+ params:
756
+ blockId: confirm_theme_colors
757
+ method: open
758
+ - id: confirm_theme_padding_trigger
759
+ type: Button
760
+ layout:
761
+ flex: 0 0 auto
762
+ properties:
763
+ title: Custom Padding
764
+ color: primary
765
+ variant: outlined
766
+ events:
767
+ onClick:
768
+ - id: confirm_theme_padding_open
769
+ type: CallMethod
770
+ params:
771
+ blockId: confirm_theme_padding
772
+ method: open
773
+ - id: confirm_theme_radius_trigger
774
+ type: Button
775
+ layout:
776
+ flex: 0 0 auto
777
+ properties:
778
+ title: Custom Radius and Mask
779
+ color: primary
780
+ variant: outlined
781
+ events:
782
+ onClick:
783
+ - id: confirm_theme_radius_open
784
+ type: CallMethod
785
+ params:
786
+ blockId: confirm_theme_radius
787
+ method: open
788
+ - id: confirm_theme_colors
789
+ type: ConfirmModal
790
+ properties:
791
+ title: Custom Color Theme
792
+ content: This modal uses theme tokens to set a custom header background, title
793
+ color, content background, and footer background.
794
+ theme:
795
+ titleColor: "#0958d9"
796
+ titleFontSize: 18
797
+ - id: confirm_theme_padding
798
+ type: ConfirmModal
799
+ properties:
800
+ title: Custom Padding
801
+ content: This modal uses confirmBodyPadding and confirmBtnsMarginTop tokens for
802
+ tighter spacing. The confirmIconMarginInlineEnd adjusts icon-to-text
803
+ distance.
804
+ theme:
805
+ confirmBodyPadding: 16px 24px
806
+ confirmBtnsMarginTop: 16
807
+ confirmIconMarginInlineEnd: 12
808
+ - id: confirm_theme_radius
809
+ type: ConfirmModal
810
+ properties:
811
+ title: Rounded with Tinted Mask
812
+ content: This modal uses borderRadiusLG for extra-rounded corners and
813
+ colorBgMask for a tinted overlay backdrop.
814
+ theme:
815
+ borderRadiusLG: 20
816
+ colorBgMask: rgba(0, 0, 100, 0.3)
817
+ titleLineHeight: 2
818
+ ```
819
+
820
+ Sarah Chen - Product Manager
821
+
822
+ James Park - Engineering Lead
823
+
824
+ ```yaml
825
+ - id: delete_flow_card
826
+ type: Card
827
+ properties:
828
+ title: Team Members
829
+ size: small
830
+ blocks:
831
+ - id: delete_flow_list_item_1
832
+ type: Box
833
+ layout:
834
+ gap: 12
835
+ align: center
836
+ blocks:
837
+ - id: delete_flow_avatar_1
838
+ type: Avatar
839
+ layout:
840
+ flex: 0 0 auto
841
+ properties:
842
+ icon: AiOutlineUser
843
+ size: 32
844
+ color: "#fff"
845
+ backgroundColor: "#1677ff"
846
+ - id: delete_flow_name_1
847
+ type: Paragraph
848
+ layout:
849
+ flex: 1 1 0
850
+ properties:
851
+ content: Sarah Chen - Product Manager
852
+ - id: delete_flow_remove_btn_1
853
+ type: Button
854
+ layout:
855
+ flex: 0 0 auto
856
+ properties:
857
+ title: Remove
858
+ icon: AiOutlineDelete
859
+ color: danger
860
+ variant: text
861
+ size: small
862
+ events:
863
+ onClick:
864
+ - id: delete_flow_set_member
865
+ type: SetState
866
+ params:
867
+ member_to_remove: Sarah Chen
868
+ - id: delete_flow_open_confirm
869
+ type: CallMethod
870
+ params:
871
+ blockId: delete_flow_confirm
872
+ method: open
873
+ - id: delete_flow_divider
874
+ type: Divider
875
+ - id: delete_flow_list_item_2
876
+ type: Box
877
+ layout:
878
+ gap: 12
879
+ align: center
880
+ blocks:
881
+ - id: delete_flow_avatar_2
882
+ type: Avatar
883
+ layout:
884
+ flex: 0 0 auto
885
+ properties:
886
+ icon: AiOutlineUser
887
+ size: 32
888
+ color: "#fff"
889
+ backgroundColor: "#52c41a"
890
+ - id: delete_flow_name_2
891
+ type: Paragraph
892
+ layout:
893
+ flex: 1 1 0
894
+ properties:
895
+ content: James Park - Engineering Lead
896
+ - id: delete_flow_remove_btn_2
897
+ type: Button
898
+ layout:
899
+ flex: 0 0 auto
900
+ properties:
901
+ title: Remove
902
+ icon: AiOutlineDelete
903
+ color: danger
904
+ variant: text
905
+ size: small
906
+ events:
907
+ onClick:
908
+ - id: delete_flow_set_member_2
909
+ type: SetState
910
+ params:
911
+ member_to_remove: James Park
912
+ - id: delete_flow_open_confirm_2
913
+ type: CallMethod
914
+ params:
915
+ blockId: delete_flow_confirm
916
+ method: open
917
+ - id: delete_flow_confirm
918
+ type: ConfirmModal
919
+ properties:
920
+ title: Remove Team Member
921
+ status: error
922
+ icon:
923
+ name: AiOutlineUserDelete
924
+ color: "#ff4d4f"
925
+ okText: Remove
926
+ okButton:
927
+ danger: true
928
+ cancelText: Keep Member
929
+ content:
930
+ _string.concat:
931
+ - "Are you sure you want to remove "
932
+ - _state: member_to_remove
933
+ - " from the team? They will lose access to all project resources."
934
+ events:
935
+ onOk:
936
+ - id: delete_flow_ok_msg
937
+ type: DisplayMessage
938
+ params:
939
+ content:
940
+ _string.concat:
941
+ - _state: member_to_remove
942
+ - " has been removed from the team."
943
+ status: success
944
+ ```
945
+
946
+ Please verify your ticket details before submitting. You will receive a confirmation email once the ticket is created.
947
+
948
+ ```yaml
949
+ - id: form_submit_card
950
+ type: Card
951
+ properties:
952
+ title: Submit Support Ticket
953
+ blocks:
954
+ - id: form_submit_subject
955
+ type: TextInput
956
+ properties:
957
+ title: Subject
958
+ placeholder: Brief description of the issue
959
+ - id: form_submit_priority
960
+ type: Selector
961
+ properties:
962
+ title: Priority
963
+ options:
964
+ - label: Low
965
+ value: low
966
+ - label: Medium
967
+ value: medium
968
+ - label: High
969
+ value: high
970
+ - label: Critical
971
+ value: critical
972
+ - id: form_submit_description
973
+ type: TextArea
974
+ properties:
975
+ title: Description
976
+ placeholder: Describe your issue in detail...
977
+ rows: 4
978
+ - id: form_submit_btn
979
+ type: Button
980
+ layout:
981
+ flex: 0 0 auto
982
+ properties:
983
+ title: Submit Ticket
984
+ icon: AiOutlineSend
985
+ color: primary
986
+ variant: solid
987
+ events:
988
+ onClick:
989
+ - id: form_submit_open_confirm
990
+ type: CallMethod
991
+ params:
992
+ blockId: form_submit_confirm
993
+ method: open
994
+ - id: form_submit_confirm
995
+ type: ConfirmModal
996
+ properties:
997
+ title: Submit Support Ticket?
998
+ content: Please verify your ticket details before submitting. You will receive a
999
+ confirmation email once the ticket is created.
1000
+ status: confirm
1001
+ okText: Submit
1002
+ cancelText: Review Again
1003
+ centered: true
1004
+ width: 480
1005
+ icon: AiOutlineCheckCircle
1006
+ events:
1007
+ onOk:
1008
+ - id: form_submit_ok_msg
1009
+ type: DisplayMessage
1010
+ params:
1011
+ content: Support ticket submitted successfully. Check your email for
1012
+ confirmation.
1013
+ status: success
1014
+ - id: form_submit_ok_reset
1015
+ type: SetState
1016
+ params:
1017
+ form_submit_subject: null
1018
+ form_submit_priority: null
1019
+ form_submit_description: null
1020
+ onCancel:
1021
+ - id: form_submit_cancel_msg
1022
+ type: DisplayMessage
1023
+ params:
1024
+ content: Take your time to review the details.
1025
+ status: info
1026
+ ```
1027
+
1028
+ You have unsaved changes that will be lost if you leave this page. Do you want to save your changes before leaving?
1029
+
1030
+ ```yaml
1031
+ - id: nav_guard_card
1032
+ type: Card
1033
+ properties:
1034
+ title: Edit Profile
1035
+ blocks:
1036
+ - id: nav_guard_name
1037
+ type: TextInput
1038
+ properties:
1039
+ title: Display Name
1040
+ placeholder: Enter your display name
1041
+ - id: nav_guard_email
1042
+ type: TextInput
1043
+ properties:
1044
+ title: Email Address
1045
+ placeholder: name@example.com
1046
+ - id: nav_guard_actions
1047
+ type: Box
1048
+ layout:
1049
+ gap: 8
1050
+ justify: end
1051
+ blocks:
1052
+ - id: nav_guard_save_btn
1053
+ type: Button
1054
+ layout:
1055
+ flex: 0 0 auto
1056
+ properties:
1057
+ title: Save Changes
1058
+ color: primary
1059
+ variant: solid
1060
+ events:
1061
+ onClick:
1062
+ - id: nav_guard_save_msg
1063
+ type: DisplayMessage
1064
+ params:
1065
+ content: Profile saved successfully.
1066
+ status: success
1067
+ - id: nav_guard_leave_btn
1068
+ type: Button
1069
+ layout:
1070
+ flex: 0 0 auto
1071
+ properties:
1072
+ title: Leave Page
1073
+ color: default
1074
+ variant: outlined
1075
+ events:
1076
+ onClick:
1077
+ - id: nav_guard_open_confirm
1078
+ type: CallMethod
1079
+ params:
1080
+ blockId: nav_guard_confirm
1081
+ method: open
1082
+ - id: nav_guard_confirm
1083
+ type: ConfirmModal
1084
+ properties:
1085
+ title: Unsaved Changes
1086
+ content: You have unsaved changes that will be lost if you leave this page. Do
1087
+ you want to save your changes before leaving?
1088
+ status: warning
1089
+ icon: AiOutlineWarning
1090
+ okText: Save & Leave
1091
+ cancelText: Discard Changes
1092
+ closable: true
1093
+ events:
1094
+ onOk:
1095
+ - id: nav_guard_ok_msg
1096
+ type: DisplayMessage
1097
+ params:
1098
+ content: Changes saved. Navigating away...
1099
+ status: success
1100
+ - id: nav_guard_ok_link
1101
+ type: Link
1102
+ params:
1103
+ home: true
1104
+ onCancel:
1105
+ - id: nav_guard_cancel_link
1106
+ type: Link
1107
+ params:
1108
+ home: true
1109
+ ```
1110
+
1111
+ | Property | Type | Default | Description |
1112
+ | --- | --- | --- | --- |
1113
+ | `title` | string | - | Modal title - supports html. |
1114
+ | `centered` | boolean | `false` | Centered Modal. |
1115
+ | `closable` | boolean | `false` | Whether a close (x) button is visible on top right of the confirm dialog or not. |
1116
+ | `content` | string | - | Modal content. Overridden by the "content" content area - supports html. |
1117
+ | `icon` | string \| object | - | Name of an React-Icon (See all icons) or properties of an Icon block to customize modal icon. |
1118
+ | `mask` | boolean | `true` | Whether show mask or not. |
1119
+ | `maskClosable` | boolean | `false` | Whether to close the modal dialog when the mask (area outside the modal) is clicked. |
1120
+ | `okText` | string | - | Text of the Ok button. When unset, antd uses the localized default from ConfigProvider locale. |
1121
+ | `cancelText` | string | - | Text of the Cancel button. When unset, antd uses the localized default from ConfigProvider locale. |
1122
+ | `okButton` | object | - | Ok button properties. |
1123
+ | `cancelButton` | object | - | Cancel button properties. |
1124
+ | `width` | number \| string | `416` | Width of the modal dialog. |
1125
+ | `zIndex` | number | `1000` | The z-index of the Modal. |
1126
+ | `status` | string | `"confirm"` | Modal status type. Enum: `success`, `error`, `info`, `warning`, `confirm`. |
1127
+ | `theme` | object | - | Antd design token overrides for this block. See [antd design tokens](https://ant.design/components/overview#design-token). See [Ant Design modal tokens](https://ant.design/components/modal#design-token). |
1128
+ | `theme.headerBg` | string | - | Background color of the modal header. |
1129
+ | `theme.titleLineHeight` | number | `1.5` | Line height of the modal title. |
1130
+ | `theme.titleFontSize` | number | `16` | Font size of the modal title. |
1131
+ | `theme.titleColor` | string | - | Color of the modal title text. |
1132
+ | `theme.contentBg` | string | - | Background color of the modal content. |
1133
+ | `theme.footerBg` | string | `"transparent"` | Background color of the modal footer. |
1134
+ | `theme.contentPadding` | number \| string | - | Padding of the content area. |
1135
+ | `theme.confirmBodyPadding` | number \| string | - | Padding of the confirm modal body. |
1136
+ | `theme.confirmIconMarginInlineEnd` | number \| string | - | Inline end margin of the confirm modal icon. |
1137
+ | `theme.confirmBtnsMarginTop` | number \| string | - | Margin top of the confirm modal buttons. |
1138
+ | `theme.borderRadiusLG` | number | `8` | Border radius of the modal. |
1139
+ | `theme.colorBgMask` | string | `"rgba(0, 0, 0, 0.45)"` | Background color of the modal mask. |
1140
+
1141
+ | Event | Event Data | Description |
1142
+ | --- | --- | --- |
1143
+ | `onOk` | \- | Trigger actions when Ok button is clicked. |
1144
+ | `onOpen` | \- | Trigger actions when confirm modal is opened. |
1145
+ | `onCancel` | \- | Trigger actions when Cancel button is clicked. |
1146
+ | `onClose` | \- | Triggered after onOk or onCancel actions are completed. |
1147
+
1148
+ | Key | Target |
1149
+ | --- | --- |
1150
+ | `/block` | Outer block wrapper (always available). |
1151
+ | `/element` | The ConfirmModal element. |
1152
+ | `/body` | The ConfirmModal body. |
1153
+ | `/cancelIcon` | The cancel button icon in the ConfirmModal. |
1154
+ | `/icon` | The icon in the ConfirmModal. |
1155
+ | `/okIcon` | The ok button icon in the ConfirmModal. |
1156
+
1157
+ | Slot | Description |
1158
+ | --- | --- |
1159
+ | `content` | Content blocks in the confirm modal body. |