@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,661 @@
1
+ # DropdownButton
2
+
3
+ Button that opens a dropdown menu of action items. Each item triggers a named event — define item eventNames and matching events in the block events section. Supports split button mode with a primary action button and a dropdown arrow.
4
+
5
+ ```yaml
6
+ - id: db_basic
7
+ type: DropdownButton
8
+ layout:
9
+ flex: 0 0 auto
10
+ properties:
11
+ title: Actions
12
+ items:
13
+ - title: Edit
14
+ eventName: onEdit
15
+ icon: AiOutlineEdit
16
+ - title: Duplicate
17
+ eventName: onDuplicate
18
+ icon: AiOutlineCopy
19
+ - type: divider
20
+ - title: Delete
21
+ eventName: onDelete
22
+ icon: AiOutlineDelete
23
+ danger: true
24
+ events:
25
+ onEdit:
26
+ - id: db_basic_edit_msg
27
+ type: DisplayMessage
28
+ params:
29
+ content: Edit clicked
30
+ duration: 2
31
+ onDuplicate:
32
+ - id: db_basic_dup_msg
33
+ type: DisplayMessage
34
+ params:
35
+ content: Duplicate clicked
36
+ duration: 2
37
+ onDelete:
38
+ - id: db_basic_del_msg
39
+ type: DisplayMessage
40
+ params:
41
+ content: Delete clicked
42
+ status: error
43
+ duration: 2
44
+ ```
45
+
46
+ ```yaml
47
+ - id: db_split
48
+ type: DropdownButton
49
+ layout:
50
+ flex: 0 0 auto
51
+ properties:
52
+ title: Save
53
+ icon: AiOutlineSave
54
+ color: primary
55
+ variant: solid
56
+ split: true
57
+ items:
58
+ - title: Save as Draft
59
+ eventName: onSaveDraft
60
+ icon: AiOutlineFile
61
+ - title: Save & Publish
62
+ eventName: onPublish
63
+ icon: AiOutlineSend
64
+ events:
65
+ onClick:
66
+ - id: db_split_save_msg
67
+ type: DisplayMessage
68
+ params:
69
+ content: Save clicked
70
+ status: success
71
+ duration: 2
72
+ onSaveDraft:
73
+ - id: db_split_draft_msg
74
+ type: DisplayMessage
75
+ params:
76
+ content: Saved as draft
77
+ duration: 2
78
+ onPublish:
79
+ - id: db_split_pub_msg
80
+ type: DisplayMessage
81
+ params:
82
+ content: Published!
83
+ status: success
84
+ duration: 2
85
+ ```
86
+
87
+ ```yaml
88
+ - id: db_type_primary
89
+ type: DropdownButton
90
+ layout:
91
+ flex: 0 0 auto
92
+ properties:
93
+ title: Primary
94
+ color: primary
95
+ variant: solid
96
+ items:
97
+ - title: Action A
98
+ eventName: onA
99
+ - title: Action B
100
+ eventName: onB
101
+ - id: db_type_default
102
+ type: DropdownButton
103
+ layout:
104
+ flex: 0 0 auto
105
+ properties:
106
+ title: Default
107
+ items:
108
+ - title: Action A
109
+ eventName: onA
110
+ - title: Action B
111
+ eventName: onB
112
+ - id: db_type_dashed
113
+ type: DropdownButton
114
+ layout:
115
+ flex: 0 0 auto
116
+ properties:
117
+ title: Dashed
118
+ color: default
119
+ variant: dashed
120
+ items:
121
+ - title: Action A
122
+ eventName: onA
123
+ - title: Action B
124
+ eventName: onB
125
+ - id: db_type_text
126
+ type: DropdownButton
127
+ layout:
128
+ flex: 0 0 auto
129
+ properties:
130
+ title: Text
131
+ color: default
132
+ variant: text
133
+ items:
134
+ - title: Action A
135
+ eventName: onA
136
+ - title: Action B
137
+ eventName: onB
138
+ ```
139
+
140
+ ```yaml
141
+ - id: db_size_small
142
+ type: DropdownButton
143
+ layout:
144
+ flex: 0 0 auto
145
+ properties:
146
+ title: Small
147
+ size: small
148
+ items:
149
+ - title: Item 1
150
+ eventName: on1
151
+ - title: Item 2
152
+ eventName: on2
153
+ - id: db_size_middle
154
+ type: DropdownButton
155
+ layout:
156
+ flex: 0 0 auto
157
+ properties:
158
+ title: Middle
159
+ size: middle
160
+ items:
161
+ - title: Item 1
162
+ eventName: on1
163
+ - title: Item 2
164
+ eventName: on2
165
+ - id: db_size_large
166
+ type: DropdownButton
167
+ layout:
168
+ flex: 0 0 auto
169
+ properties:
170
+ title: Large
171
+ size: large
172
+ items:
173
+ - title: Item 1
174
+ eventName: on1
175
+ - title: Item 2
176
+ eventName: on2
177
+ ```
178
+
179
+ ```yaml
180
+ - id: db_icon
181
+ type: DropdownButton
182
+ layout:
183
+ flex: 0 0 auto
184
+ properties:
185
+ title: Export
186
+ icon: AiOutlineDownload
187
+ color: primary
188
+ variant: outlined
189
+ items:
190
+ - title: Export as CSV
191
+ eventName: onCSV
192
+ icon: AiOutlineFile
193
+ - title: Export as PDF
194
+ eventName: onPDF
195
+ icon: AiOutlineFilePdf
196
+ - title: Export as Excel
197
+ eventName: onExcel
198
+ icon: AiOutlineFileExcel
199
+ events:
200
+ onCSV:
201
+ - id: db_icon_csv_msg
202
+ type: DisplayMessage
203
+ params:
204
+ content: Exporting CSV...
205
+ duration: 2
206
+ onPDF:
207
+ - id: db_icon_pdf_msg
208
+ type: DisplayMessage
209
+ params:
210
+ content: Exporting PDF...
211
+ duration: 2
212
+ onExcel:
213
+ - id: db_icon_excel_msg
214
+ type: DisplayMessage
215
+ params:
216
+ content: Exporting Excel...
217
+ duration: 2
218
+ ```
219
+
220
+ ```yaml
221
+ - id: db_disabled_items
222
+ type: DropdownButton
223
+ layout:
224
+ flex: 0 0 auto
225
+ properties:
226
+ title: Manage
227
+ items:
228
+ - title: View Details
229
+ eventName: onView
230
+ icon: AiOutlineEye
231
+ - title: Edit (no permission)
232
+ eventName: onEdit
233
+ icon: AiOutlineEdit
234
+ disabled: true
235
+ - type: divider
236
+ - title: Archive
237
+ eventName: onArchive
238
+ icon: AiOutlineDelete
239
+ danger: true
240
+ events:
241
+ onView:
242
+ - id: db_dis_view_msg
243
+ type: DisplayMessage
244
+ params:
245
+ content: Viewing details...
246
+ duration: 2
247
+ onArchive:
248
+ - id: db_dis_archive_msg
249
+ type: DisplayMessage
250
+ params:
251
+ content: Archived!
252
+ status: warning
253
+ duration: 2
254
+ ```
255
+
256
+ ```yaml
257
+ - id: db_shortcuts
258
+ type: DropdownButton
259
+ layout:
260
+ flex: 0 0 auto
261
+ properties:
262
+ title: Edit
263
+ icon: AiOutlineEdit
264
+ items:
265
+ - title: Undo
266
+ eventName: onUndo
267
+ icon: AiOutlineUndo
268
+ - title: Redo
269
+ eventName: onRedo
270
+ icon: AiOutlineRedo
271
+ - type: divider
272
+ - title: Delete
273
+ eventName: onDelete
274
+ icon: AiOutlineDelete
275
+ danger: true
276
+ events:
277
+ onUndo:
278
+ shortcut: alt+z
279
+ try:
280
+ - id: db_sc_undo_msg
281
+ type: DisplayMessage
282
+ params:
283
+ content: Undo
284
+ duration: 2
285
+ onRedo:
286
+ shortcut: alt+shift+z
287
+ try:
288
+ - id: db_sc_redo_msg
289
+ type: DisplayMessage
290
+ params:
291
+ content: Redo
292
+ duration: 2
293
+ onDelete:
294
+ shortcut: alt+Backspace
295
+ try:
296
+ - id: db_sc_del_msg
297
+ type: DisplayMessage
298
+ params:
299
+ content: Deleted
300
+ status: error
301
+ duration: 2
302
+ ```
303
+
304
+ ```yaml
305
+ - id: db_hover
306
+ type: DropdownButton
307
+ layout:
308
+ flex: 0 0 auto
309
+ properties:
310
+ title: Hover Menu
311
+ trigger: hover
312
+ items:
313
+ - title: Quick Action A
314
+ eventName: onQuickA
315
+ - title: Quick Action B
316
+ eventName: onQuickB
317
+ ```
318
+
319
+ ```yaml
320
+ - id: db_split_small
321
+ type: DropdownButton
322
+ layout:
323
+ flex: 0 0 auto
324
+ properties:
325
+ title: Small Split
326
+ color: primary
327
+ variant: solid
328
+ size: small
329
+ split: true
330
+ items:
331
+ - title: Option A
332
+ eventName: onA
333
+ - title: Option B
334
+ eventName: onB
335
+ - id: db_split_default
336
+ type: DropdownButton
337
+ layout:
338
+ flex: 0 0 auto
339
+ properties:
340
+ title: Default Split
341
+ color: primary
342
+ variant: solid
343
+ split: true
344
+ items:
345
+ - title: Option A
346
+ eventName: onA
347
+ - title: Option B
348
+ eventName: onB
349
+ - id: db_split_large
350
+ type: DropdownButton
351
+ layout:
352
+ flex: 0 0 auto
353
+ properties:
354
+ title: Large Split
355
+ color: primary
356
+ variant: solid
357
+ size: large
358
+ split: true
359
+ items:
360
+ - title: Option A
361
+ eventName: onA
362
+ - title: Option B
363
+ eventName: onB
364
+ ```
365
+
366
+ ```yaml
367
+ - id: db_openchange
368
+ type: DropdownButton
369
+ layout:
370
+ flex: 0 0 auto
371
+ properties:
372
+ title: Track Open
373
+ items:
374
+ - title: Item A
375
+ eventName: onA
376
+ - title: Item B
377
+ eventName: onB
378
+ events:
379
+ onOpenChange:
380
+ - id: db_openchange_msg
381
+ type: DisplayMessage
382
+ params:
383
+ content: Dropdown toggled!
384
+ duration: 2
385
+ ```
386
+
387
+ ```yaml
388
+ - id: db_color_primary
389
+ type: DropdownButton
390
+ layout:
391
+ flex: 0 0 auto
392
+ properties:
393
+ title: Primary
394
+ color: primary
395
+ variant: solid
396
+ items:
397
+ - title: Option A
398
+ eventName: onA
399
+ - title: Option B
400
+ eventName: onB
401
+ - id: db_color_danger
402
+ type: DropdownButton
403
+ layout:
404
+ flex: 0 0 auto
405
+ properties:
406
+ title: Danger
407
+ color: danger
408
+ variant: solid
409
+ items:
410
+ - title: Option A
411
+ eventName: onA
412
+ - title: Option B
413
+ eventName: onB
414
+ - id: db_color_green
415
+ type: DropdownButton
416
+ layout:
417
+ flex: 0 0 auto
418
+ properties:
419
+ title: Green
420
+ color: green
421
+ variant: solid
422
+ items:
423
+ - title: Option A
424
+ eventName: onA
425
+ - title: Option B
426
+ eventName: onB
427
+ - id: db_color_custom
428
+ type: DropdownButton
429
+ layout:
430
+ flex: 0 0 auto
431
+ properties:
432
+ title: Custom Hex
433
+ color: "#722ed1"
434
+ variant: solid
435
+ items:
436
+ - title: Option A
437
+ eventName: onA
438
+ - title: Option B
439
+ eventName: onB
440
+ ```
441
+
442
+ ```yaml
443
+ - id: db_ghost
444
+ type: DropdownButton
445
+ layout:
446
+ flex: 0 0 auto
447
+ properties:
448
+ title: Ghost
449
+ color: primary
450
+ variant: solid
451
+ ghost: true
452
+ items:
453
+ - title: Option A
454
+ eventName: onA
455
+ - title: Option B
456
+ eventName: onB
457
+ - id: db_danger_btn
458
+ type: DropdownButton
459
+ layout:
460
+ flex: 0 0 auto
461
+ properties:
462
+ title: Danger Button
463
+ danger: true
464
+ items:
465
+ - title: Option A
466
+ eventName: onA
467
+ - title: Option B
468
+ eventName: onB
469
+ ```
470
+
471
+ ```yaml
472
+ - id: db_shape_square
473
+ type: DropdownButton
474
+ layout:
475
+ flex: 0 0 auto
476
+ properties:
477
+ title: Square
478
+ shape: square
479
+ items:
480
+ - title: Option A
481
+ eventName: onA
482
+ - title: Option B
483
+ eventName: onB
484
+ - id: db_shape_round
485
+ type: DropdownButton
486
+ layout:
487
+ flex: 0 0 auto
488
+ properties:
489
+ title: Round
490
+ shape: round
491
+ items:
492
+ - title: Option A
493
+ eventName: onA
494
+ - title: Option B
495
+ eventName: onB
496
+ ```
497
+
498
+ ```yaml
499
+ - id: db_theme_account
500
+ type: DropdownButton
501
+ layout:
502
+ flex: 0 0 auto
503
+ properties:
504
+ title: My Account
505
+ icon: AiOutlineUser
506
+ color: "#531dab"
507
+ variant: solid
508
+ theme:
509
+ borderRadiusLG: 12
510
+ controlItemBgHover: "#f9f0ff"
511
+ controlItemBgActive: "#efdbff"
512
+ button:
513
+ borderRadius: 20
514
+ paddingInline: 24
515
+ controlHeight: 40
516
+ items:
517
+ - title: Profile Settings
518
+ eventName: onProfile
519
+ icon: AiOutlineSetting
520
+ - title: Billing & Plans
521
+ eventName: onBilling
522
+ icon: AiOutlineCreditCard
523
+ - type: divider
524
+ - title: Sign Out
525
+ eventName: onSignOut
526
+ icon: AiOutlineLogout
527
+ danger: true
528
+ events:
529
+ onProfile:
530
+ - id: db_theme_profile_msg
531
+ type: DisplayMessage
532
+ params:
533
+ content: Opening profile settings...
534
+ duration: 2
535
+ onBilling:
536
+ - id: db_theme_billing_msg
537
+ type: DisplayMessage
538
+ params:
539
+ content: Opening billing page...
540
+ duration: 2
541
+ onSignOut:
542
+ - id: db_theme_signout_msg
543
+ type: DisplayMessage
544
+ params:
545
+ content: Signed out
546
+ status: warning
547
+ duration: 2
548
+ ```
549
+
550
+ ```yaml
551
+ - id: db_theme_dangerzone
552
+ type: DropdownButton
553
+ layout:
554
+ flex: 0 0 auto
555
+ properties:
556
+ title: Delete Account
557
+ icon: AiOutlineWarning
558
+ color: danger
559
+ variant: solid
560
+ split: true
561
+ theme:
562
+ borderRadiusLG: 8
563
+ button:
564
+ colorPrimary: "#cf1322"
565
+ colorPrimaryHover: "#a8071a"
566
+ colorPrimaryActive: "#820014"
567
+ items:
568
+ - title: Delete All Data
569
+ eventName: onDeleteData
570
+ icon: AiOutlineDelete
571
+ danger: true
572
+ - title: Export Data First
573
+ eventName: onExportFirst
574
+ icon: AiOutlineDownload
575
+ events:
576
+ onClick:
577
+ - id: db_dz_click_msg
578
+ type: DisplayMessage
579
+ params:
580
+ content: Are you sure? This cannot be undone.
581
+ status: error
582
+ duration: 3
583
+ onDeleteData:
584
+ - id: db_dz_deldata_msg
585
+ type: DisplayMessage
586
+ params:
587
+ content: All data deleted permanently.
588
+ status: error
589
+ duration: 3
590
+ onExportFirst:
591
+ - id: db_dz_export_msg
592
+ type: DisplayMessage
593
+ params:
594
+ content: Exporting data before deletion...
595
+ duration: 2
596
+ ```
597
+
598
+ | Property | Type | Default | Description |
599
+ | --- | --- | --- | --- |
600
+ | `title` | string | - | Button label text. |
601
+ | `icon` | string \| object | - | Name of a React-Icon or properties of an Icon block to use icon in button. |
602
+ | `type` | string | `"default"` | Deprecated - use color and variant instead. The button type. Enum: `primary`, `default`, `dashed`, `text`, `link`. |
603
+ | `color` | string | - | Button color. Preset values: default, primary, danger, blue, purple, cyan, green, magenta, pink, red, orange, yellow, volcano, geekblue, lime, gold. Also accepts custom hex color strings. |
604
+ | `variant` | string | - | Button visual variant. When set, takes precedence over type. Enum: `solid`, `outlined`, `dashed`, `filled`, `text`, `link`. |
605
+ | `size` | string | `"middle"` | Button size. Enum: `small`, `middle`, `large`. |
606
+ | `shape` | string | `"square"` | Shape of the button. Enum: `circle`, `round`, `square`. |
607
+ | `danger` | boolean | `false` | Set button style to danger. |
608
+ | `ghost` | boolean | `false` | Make the button's background transparent. |
609
+ | `disabled` | boolean | `false` | Disable the entire dropdown. |
610
+ | `trigger` | string | `"click"` | How the dropdown opens. Enum: `click`, `hover`. |
611
+ | `placement` | string | `"bottomRight"` | Dropdown position. Enum: `bottomLeft`, `bottom`, `bottomRight`, `topLeft`, `top`, `topRight`. |
612
+ | `arrow` | boolean \| object | `false` | Show arrow pointing to trigger. |
613
+ | `arrow.pointAtCenter` | boolean | - | |
614
+ | `split` | boolean | `false` | Split button mode. Left button fires onClick, right arrow opens dropdown. |
615
+ | `items` | array | - | Menu items. Each with an eventName that triggers a named event. Keyboard shortcuts can be configured via the standard `events..shortcut` schema (preferred) or via the item-level `shortcut` property — both render a badge next to the item label. The event-level shortcut takes precedence when both are set. |
616
+ | `items.$.title` | string | - | Display text. |
617
+ | `items.$.eventName` | string | - | Event name to trigger when clicked. |
618
+ | `items.$.icon` | string \| object | - | Icon name or config. |
619
+ | `items.$.danger` | boolean | - | Red danger styling. |
620
+ | `items.$.disabled` | boolean | - | Disable this item. |
621
+ | `items.$.type` | string | - | Set to divider for a separator. Enum: `divider`. |
622
+ | `items.$.shortcut` | string | - | Keyboard shortcut. Binds the key and renders the badge. Prefer configuring this via `events..shortcut` to follow the standard Lowdefy event schema — the event-level shortcut takes precedence when both are set. |
623
+ | `theme` | object | - | Antd design token overrides. Top-level keys apply to the Dropdown menu. Use the nested "button" key for Button-specific tokens. See [antd design tokens](https://ant.design/components/overview#design-token). See [Ant Design dropdown tokens](https://ant.design/components/dropdown#design-token). |
624
+ | `theme.zIndexPopup` | number | `1050` | Z-index of the dropdown popup. |
625
+ | `theme.controlItemBgHover` | string | - | Background color on menu item hover. |
626
+ | `theme.borderRadiusLG` | number | - | Border radius for the dropdown menu. |
627
+ | `theme.paddingBlock` | number | - | Vertical padding for menu items. |
628
+ | `theme.button` | object | - | Button component token overrides. See [Button design tokens](https://ant.design/components/button#design-token). See [Ant Design button tokens](https://ant.design/components/button#design-token). |
629
+ | `theme.button.borderRadius` | number | `6` | Border radius of the button. |
630
+ | `theme.button.borderRadiusLG` | number | `8` | Border radius for large buttons. |
631
+ | `theme.button.borderRadiusSM` | number | `4` | Border radius for small buttons. |
632
+ | `theme.button.controlHeight` | number | `32` | Height of the button. |
633
+ | `theme.button.controlHeightLG` | number | `40` | Height for large buttons. |
634
+ | `theme.button.controlHeightSM` | number | `24` | Height for small buttons. |
635
+ | `theme.button.fontSize` | number | `14` | Font size. |
636
+ | `theme.button.paddingInline` | number | `15` | Horizontal padding. |
637
+ | `theme.button.paddingBlock` | number | `0` | Vertical padding. |
638
+ | `theme.button.colorPrimary` | string | - | Primary color override. |
639
+ | `theme.button.colorPrimaryHover` | string | - | Primary hover color. |
640
+ | `theme.button.colorPrimaryActive` | string | - | Primary active color. |
641
+ | `theme.button.colorBgContainer` | string | - | Background color for default buttons. |
642
+ | `theme.button.colorText` | string | - | Text color for default buttons. |
643
+ | `theme.button.colorBorder` | string | - | Border color for outlined and dashed buttons. |
644
+
645
+ | Event | Event Data | Description |
646
+ | --- | --- | --- |
647
+ | `onClick` | \- | Trigger action when the button is clicked (split mode). Renders a shortcut badge when a shortcut is configured on the event. |
648
+ | `onOpenChange` | \- | Trigger action when dropdown opens or closes. |
649
+
650
+ | Key | Target |
651
+ | --- | --- |
652
+ | `/block` | Outer block wrapper (always available). |
653
+ | `/element` | The outer container. |
654
+ | `/button` | The trigger button. |
655
+ | `/icon` | The icon in the button. |
656
+ | `/menu` | The floating menu container. |
657
+ | `/item` | Individual menu items. |
658
+ | `/itemIcon` | Icon within menu items. |
659
+ | `/arrow` | Dropdown arrow indicator. |
660
+
661
+ No slots defined.