@lowdefy/docs-content 6.1.0 → 7.1.0
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.
- package/README.md +1 -0
- package/content/actions/downloadcsv.md +1 -1
- package/content/actions/emailotpsend.md +58 -0
- package/content/actions/emailotpverify.md +79 -0
- package/content/actions/getlocalstorage.md +43 -0
- package/content/actions/link.md +47 -1
- package/content/actions/login.md +25 -5
- package/content/actions/logout.md +7 -5
- package/content/actions/magiclinkverify.md +117 -0
- package/content/actions/pdfmake.md +2 -2
- package/content/actions/posthogalias.md +29 -0
- package/content/actions/posthogcapture.md +49 -0
- package/content/actions/posthogcapturepageleave.md +38 -0
- package/content/actions/posthogfeatureflag.md +50 -0
- package/content/actions/posthoggroup.md +37 -0
- package/content/actions/posthogidentify.md +54 -0
- package/content/actions/posthoginit.md +96 -0
- package/content/actions/posthogoptin.md +29 -0
- package/content/actions/posthogoptout.md +29 -0
- package/content/actions/posthogpageview.md +37 -0
- package/content/actions/posthogreloadfeatureflags.md +47 -0
- package/content/actions/posthogreset.md +28 -0
- package/content/actions/posthogsetpersonproperties.md +36 -0
- package/content/actions/removelocalstorage.md +28 -0
- package/content/actions/resetvalidation.md +7 -3
- package/content/actions/setdarkmode.md +3 -3
- package/content/actions/setglobal.md +2 -0
- package/content/actions/setlocale.md +1 -1
- package/content/actions/setlocalstorage.md +34 -0
- package/content/actions/validate.md +7 -4
- package/content/adapter-reference/mongodbauthadapter.md +46 -0
- package/content/agents/agent-endpoint-tools.md +24 -0
- package/content/agents/agent-properties.md +13 -3
- package/content/agents/agent-server-hooks.md +1 -1
- package/content/agents/agentchat.md +43 -7
- package/content/agents/agentconversations.md +42 -8
- package/content/agents/agents-introduction.md +107 -0
- package/content/callback-reference/auth0logoutcallback.md +54 -0
- package/content/concepts/ai-agent-docs.md +455 -106
- package/content/concepts/blocks.md +150 -0
- package/content/concepts/connections-and-requests.md +402 -0
- package/content/concepts/custom-html.md +42 -0
- package/content/concepts/custom-styling.md +50 -5
- package/content/concepts/dynamic-page-content.md +309 -0
- package/content/concepts/events-and-actions.md +154 -2
- package/content/concepts/four-primitives.md +31 -0
- package/content/concepts/html-attributes.md +293 -0
- package/content/concepts/i18n.md +8 -3
- package/content/concepts/keyboard-shortcuts.md +2 -2
- package/content/concepts/layout-overview.md +1 -1
- package/content/concepts/logger.md +99 -0
- package/content/concepts/lowdefy-api.md +1319 -0
- package/content/concepts/lowdefy-schema.md +136 -3
- package/content/concepts/menus.md +8 -7
- package/content/concepts/module-authoring.md +76 -5
- package/content/concepts/modules.md +3 -1
- package/content/concepts/notifications.md +180 -0
- package/content/concepts/operators.md +7 -0
- package/content/concepts/page-and-app-state.md +252 -0
- package/content/concepts/page-paths.md +209 -0
- package/content/concepts/theming.md +582 -0
- package/content/connections/aigateway.md +375 -0
- package/content/connections/anthropic.md +169 -2
- package/content/connections/awss3.md +178 -2
- package/content/connections/axioshttp.md +181 -0
- package/content/connections/google.md +169 -2
- package/content/connections/mongodb.md +1014 -3
- package/content/connections/openai-connection.md +169 -2
- package/content/connections/sendgridmail.md +2 -0
- package/content/connections/smtp.md +3 -1
- package/content/connections/treg.md +329 -0
- package/content/container-blocks/affix.md +47 -7
- package/content/container-blocks/alert.md +76 -24
- package/content/container-blocks/badge.md +100 -24
- package/content/container-blocks/box.md +9 -9
- package/content/container-blocks/card.md +132 -27
- package/content/container-blocks/carousel.md +60 -7
- package/content/container-blocks/collapse.md +153 -9
- package/content/container-blocks/configprovider.md +35 -13
- package/content/container-blocks/confirmmodal.md +69 -23
- package/content/container-blocks/content.md +62 -98
- package/content/container-blocks/descriptions.md +45 -4
- package/content/container-blocks/drawer.md +139 -28
- package/content/container-blocks/dropdownmenu.md +119 -31
- package/content/container-blocks/flex.md +40 -62
- package/content/container-blocks/footer.md +15 -11
- package/content/container-blocks/googlemapsheatmap.md +1 -1
- package/content/container-blocks/googlemapsscript.md +2 -2
- package/content/container-blocks/header.md +71 -36
- package/content/container-blocks/label.md +34 -7
- package/content/container-blocks/layout.md +52 -34
- package/content/container-blocks/masonry.md +17 -71
- package/content/container-blocks/mobilemenu.md +131 -88
- package/content/container-blocks/modal.md +161 -26
- package/content/container-blocks/pageheadermenu.md +138 -31
- package/content/container-blocks/pagesidebarlayout.md +230 -27
- package/content/container-blocks/pagesidermenu.md +153 -43
- package/content/container-blocks/popover.md +34 -31
- package/content/container-blocks/result.md +32 -21
- package/content/container-blocks/sider.md +85 -122
- package/content/container-blocks/span.md +7 -7
- package/content/container-blocks/spinner.md +3 -3
- package/content/container-blocks/splitter.md +150 -68
- package/content/container-blocks/tabs.md +64 -12
- package/content/container-blocks/tooltip.md +22 -46
- package/content/container-blocks/watermark.md +22 -4
- package/content/controls/parallel_for.md +21 -2
- package/content/controls/reject.md +24 -3
- package/content/controls/return.md +17 -1
- package/content/controls/throw.md +1 -0
- package/content/controls/try.md +4 -2
- package/content/controls/while.md +46 -0
- package/content/deployment/deployment-environments.md +10 -7
- package/content/deployment/docker.md +22 -7
- package/content/deployment/node-server.md +4 -0
- package/content/deployment/vercel.md +17 -6
- package/content/display-blocks/aggrid.md +36 -19
- package/content/display-blocks/anchor.md +16 -15
- package/content/display-blocks/avatar.md +57 -37
- package/content/display-blocks/breadcrumb.md +70 -21
- package/content/display-blocks/button.md +93 -19
- package/content/display-blocks/calendar.md +12 -0
- package/content/display-blocks/clickablehtml.md +239 -0
- package/content/display-blocks/dangeroushtml.md +1 -1
- package/content/display-blocks/difflist.md +1 -1
- package/content/display-blocks/difftimeline.md +1 -1
- package/content/display-blocks/divider.md +64 -3
- package/content/display-blocks/dropdownbutton.md +81 -30
- package/content/display-blocks/echart.md +35 -1
- package/content/display-blocks/eventlog.md +363 -0
- package/content/display-blocks/floatbutton.md +129 -42
- package/content/display-blocks/html.md +61 -1
- package/content/display-blocks/icon.md +250 -67
- package/content/display-blocks/img.md +2 -2
- package/content/display-blocks/menu.md +146 -73
- package/content/display-blocks/message.md +38 -124
- package/content/display-blocks/notification.md +94 -222
- package/content/display-blocks/paragraph.md +59 -9
- package/content/display-blocks/pollingtimer.md +263 -0
- package/content/display-blocks/progress.md +96 -17
- package/content/display-blocks/qrcode.md +19 -4
- package/content/display-blocks/s3download.md +1 -1
- package/content/display-blocks/search.md +19 -9
- package/content/display-blocks/skeletonbutton.md +1 -0
- package/content/display-blocks/skeletoninput.md +1 -0
- package/content/display-blocks/statistic.md +75 -17
- package/content/display-blocks/steps.md +58 -25
- package/content/display-blocks/table.md +2527 -0
- package/content/display-blocks/tablelight.md +621 -0
- package/content/display-blocks/tag.md +102 -17
- package/content/display-blocks/title.md +50 -11
- package/content/display-blocks/tour.md +33 -23
- package/content/input-blocks/autocomplete.md +81 -9
- package/content/input-blocks/buttonselector.md +45 -8
- package/content/input-blocks/captcha.md +40 -0
- package/content/input-blocks/checkboxselector.md +97 -7
- package/content/input-blocks/checkboxswitch.md +33 -3
- package/content/input-blocks/colorselector.md +63 -14
- package/content/input-blocks/daterangeselector.md +165 -45
- package/content/input-blocks/dateselector.md +139 -41
- package/content/input-blocks/datetimeselector.md +158 -49
- package/content/input-blocks/inputgallery.md +3 -3
- package/content/input-blocks/intentinput.md +207 -0
- package/content/input-blocks/monthselector.md +120 -52
- package/content/input-blocks/multipleselector.md +150 -39
- package/content/input-blocks/numberinput.md +98 -12
- package/content/input-blocks/pagination.md +70 -14
- package/content/input-blocks/paragraphinput.md +51 -37
- package/content/input-blocks/passwordinput.md +60 -6
- package/content/input-blocks/phonenumberinput.md +59 -26
- package/content/input-blocks/placesautocomplete.md +319 -0
- package/content/input-blocks/radioselector.md +83 -7
- package/content/input-blocks/ratingslider.md +57 -26
- package/content/input-blocks/s3uploadbutton.md +24 -24
- package/content/input-blocks/s3uploaddragger.md +3 -3
- package/content/input-blocks/s3uploadphoto.md +5 -5
- package/content/input-blocks/segmentedselector.md +72 -32
- package/content/input-blocks/selector.md +109 -21
- package/content/input-blocks/switch.md +65 -17
- package/content/input-blocks/tableinput.md +445 -0
- package/content/input-blocks/tagmultipleselector.md +114 -0
- package/content/input-blocks/tagselector.md +114 -0
- package/content/input-blocks/textarea.md +32 -3
- package/content/input-blocks/textinput.md +70 -29
- package/content/input-blocks/tiptapinput.md +1 -1
- package/content/input-blocks/tiptapmentioninput.md +2 -2
- package/content/input-blocks/titleinput.md +39 -12
- package/content/input-blocks/treeinput.md +49 -25
- package/content/input-blocks/treemultipleselector.md +127 -10
- package/content/input-blocks/treeselector.md +97 -9
- package/content/input-blocks/upload.md +64 -15
- package/content/input-blocks/uploaddragger.md +17 -1
- package/content/input-blocks/uploadphoto.md +18 -1
- package/content/input-blocks/weekselector.md +120 -55
- package/content/learn/introduction.md +27 -0
- package/content/learn/quickstart.md +53 -0
- package/content/list-blocks/controlledlist.md +24 -15
- package/content/list-blocks/list.md +11 -11
- package/content/list-blocks/masonrylist.md +7 -34
- package/content/migration/auth-upgrade.md +337 -0
- package/content/migration/upgrade-guide.md +1 -0
- package/content/migration/v3-to-v4.md +417 -0
- package/content/migration/v6-to-v7.md +620 -0
- package/content/operators/_agent.md +155 -0
- package/content/operators/_app.md +2 -1
- package/content/operators/_array.md +122 -1
- package/content/operators/_build.md +1 -0
- package/content/operators/_credential.md +57 -0
- package/content/operators/_cron.md +292 -0
- package/content/operators/_date.md +2 -0
- package/content/operators/_error.md +24 -1
- package/content/operators/_get.md +6 -6
- package/content/operators/_hmac.md +78 -0
- package/content/operators/_js.md +2 -1
- package/content/operators/_location.md +1 -1
- package/content/operators/_media.md +13 -0
- package/content/operators/_module.md +56 -2
- package/content/operators/_operator.md +17 -3
- package/content/operators/_path_params.md +82 -0
- package/content/operators/_ref.md +258 -0
- package/content/operators/_request.md +1 -1
- package/content/operators/_request_details.md +6 -0
- package/content/operators/_type.md +14 -3
- package/content/operators/_url_query.md +2 -0
- package/content/operators/_user.md +3 -3
- package/content/plugins/plugins-actions.md +10 -0
- package/content/plugins/plugins-connections.md +25 -0
- package/content/plugins/plugins-dev.md +66 -0
- package/content/plugins/plugins-icon-sets.md +267 -0
- package/content/plugins/plugins-introduction.md +27 -1
- package/content/plugins/plugins.md +19 -0
- package/content/plugins/posthog.md +359 -0
- package/content/provider-reference/auth-js-providers.md +107 -0
- package/content/provider-reference/openidconnectprovider.md +44 -0
- package/content/recipes/recipes.md +16 -0
- package/content/reference/actions-reference.md +31 -0
- package/content/reference/blocks-reference.md +35 -0
- package/content/reference/cli.md +403 -0
- package/content/reference/connections-reference.md +23 -0
- package/content/reference/operators-reference.md +47 -0
- package/content/reference/reference.md +16 -0
- package/content/reference/schema-reference.md +12 -0
- package/content/testing/config-tests.md +677 -0
- package/content/testing/e2e-configuration.md +31 -1
- package/content/testing/e2e-getting-started.md +1 -1
- package/content/testing/e2e-introduction.md +1 -1
- package/content/testing/e2e-writing-tests.md +12 -1
- package/content/testing/explore-pull-request.md +136 -0
- package/content/testing/journey-data-sets.md +326 -0
- package/content/tutorial/tutorial-actions-operators.md +2 -2
- package/content/tutorial/tutorial-add-blocks.md +2 -2
- package/content/tutorial/tutorial-create-page.md +48 -2
- package/content/tutorial/tutorial-display-data-page.md +3 -3
- package/content/tutorial/tutorial-requests-api.md +155 -0
- package/content/tutorial/tutorial-requests-sql.md +153 -0
- package/content/tutorial/tutorial-start.md +66 -1
- package/content/user-authentication/auth-configuration.md +267 -0
- package/content/user-authentication/auth-providers.md +24 -0
- package/content/user-authentication/auth-steps.md +141 -0
- package/content/user-authentication/login-and-logout.md +160 -8
- package/content/user-authentication/mcp-oauth.md +424 -0
- package/content/user-authentication/organizations.md +246 -0
- package/content/user-authentication/protected-pages-apis.md +97 -0
- package/content/user-authentication/roles.md +49 -0
- package/content/user-authentication/two-factor.md +229 -0
- package/content/user-authentication/user-object.md +58 -0
- package/content/user-authentication/users-introduction.md +8 -0
- package/content/websockets/websocket-publish.md +105 -0
- package/content/websockets/websocket-subscriptions.md +136 -0
- package/content/websockets/websockets-introduction.md +101 -0
- package/hazards.json +44 -0
- package/index.json +3691 -14
- package/package.json +11 -1
- package/scripts/collectImportedFiles.js +80 -0
- package/scripts/extractAgentDocs.js +41 -30
- package/scripts/hashDocSources.js +38 -0
- package/scripts/isRedirectPage.js +26 -0
- package/scripts/recordSourceHashes.js +100 -0
- package/scripts/resolvePageSections.js +42 -0
- package/scripts/sectionKind.js +27 -0
- package/content/concepts/cli.md +0 -223
- package/content/other/introduction.md +0 -39
- package/content/other/next-auth-providers.md +0 -3
- /package/content/{other → actions}/updatesession.md +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Modal
|
|
2
2
|
|
|
3
|
-
Modal dialog overlay for focused content. Add `shortcut: Escape` to the `onClose` event to run custom actions when Escape is pressed. Ant Design
|
|
3
|
+
Modal dialog overlay for focused content. Add `shortcut: Escape` to the `onClose` event to run custom actions when Escape is pressed. Ant Design's Modal already closes on Escape by default — the shortcut triggers your custom actions in addition to the built-in close.
|
|
4
4
|
|
|
5
5
|
This is a basic modal dialog with a title, content area, and default Ok/Cancel buttons.
|
|
6
6
|
|
|
@@ -71,6 +71,52 @@ The modal title supports HTML markup for rich text formatting.
|
|
|
71
71
|
content: The modal title supports HTML markup for rich text formatting.
|
|
72
72
|
```
|
|
73
73
|
|
|
74
|
+
```yaml
|
|
75
|
+
- id: modal_padding_trigger
|
|
76
|
+
type: Button
|
|
77
|
+
layout:
|
|
78
|
+
flex: 0 0 auto
|
|
79
|
+
properties:
|
|
80
|
+
title: Open Modal with padding none
|
|
81
|
+
events:
|
|
82
|
+
onClick:
|
|
83
|
+
- id: modal_padding_open
|
|
84
|
+
type: CallMethod
|
|
85
|
+
params:
|
|
86
|
+
blockId: modal_padding
|
|
87
|
+
method: setOpen
|
|
88
|
+
args:
|
|
89
|
+
- open: true
|
|
90
|
+
- id: modal_padding
|
|
91
|
+
type: Modal
|
|
92
|
+
properties:
|
|
93
|
+
title: Recent invoices
|
|
94
|
+
padding: none
|
|
95
|
+
blocks:
|
|
96
|
+
- id: modal_padding_rows
|
|
97
|
+
type: Html
|
|
98
|
+
properties:
|
|
99
|
+
html: >
|
|
100
|
+
<div style="display: flex; justify-content: space-between; padding:
|
|
101
|
+
8px 24px; border-bottom: 1px solid
|
|
102
|
+
var(--ant-color-border-secondary);"><span>INV-1042</span><span
|
|
103
|
+
style="color: var(--ant-color-text-secondary);">$1,280.00</span></div>
|
|
104
|
+
|
|
105
|
+
<div style="display: flex; justify-content: space-between; padding:
|
|
106
|
+
8px 24px; border-bottom: 1px solid
|
|
107
|
+
var(--ant-color-border-secondary);"><span>INV-1041</span><span
|
|
108
|
+
style="color: var(--ant-color-text-secondary);">$640.00</span></div>
|
|
109
|
+
|
|
110
|
+
<div style="display: flex; justify-content: space-between; padding:
|
|
111
|
+
8px 24px; border-bottom: 1px solid
|
|
112
|
+
var(--ant-color-border-secondary);"><span>INV-1040</span><span
|
|
113
|
+
style="color: var(--ant-color-text-secondary);">$2,115.50</span></div>
|
|
114
|
+
|
|
115
|
+
<div style="display: flex; justify-content: space-between; padding:
|
|
116
|
+
8px 24px;"><span>INV-1039</span><span style="color:
|
|
117
|
+
var(--ant-color-text-secondary);">$96.00</span></div>
|
|
118
|
+
```
|
|
119
|
+
|
|
74
120
|
The okText and cancelText properties customize the footer button labels. This modal uses "Save Changes" and "Discard" instead of "Ok" and "Cancel".
|
|
75
121
|
|
|
76
122
|
```yaml
|
|
@@ -340,6 +386,8 @@ The mask is visible but clicking it does not close the modal. Users must use the
|
|
|
340
386
|
|
|
341
387
|
No mask overlay is shown behind the modal. The page content remains fully visible.
|
|
342
388
|
|
|
389
|
+
The page behind the mask is blurred, which keeps attention on the dialog.
|
|
390
|
+
|
|
343
391
|
```yaml
|
|
344
392
|
- id: modal_mask_not_closable_trigger
|
|
345
393
|
type: Button
|
|
@@ -397,6 +445,71 @@ No mask overlay is shown behind the modal. The page content remains fully visibl
|
|
|
397
445
|
properties:
|
|
398
446
|
content: No mask overlay is shown behind the modal. The page content remains
|
|
399
447
|
fully visible.
|
|
448
|
+
- id: modal_blur_mask_trigger
|
|
449
|
+
type: Button
|
|
450
|
+
layout:
|
|
451
|
+
flex: 0 0 auto
|
|
452
|
+
properties:
|
|
453
|
+
title: Blurred Mask
|
|
454
|
+
color: primary
|
|
455
|
+
variant: outlined
|
|
456
|
+
events:
|
|
457
|
+
onClick:
|
|
458
|
+
- id: modal_blur_mask_open
|
|
459
|
+
type: CallMethod
|
|
460
|
+
params:
|
|
461
|
+
blockId: modal_blur_mask
|
|
462
|
+
method: setOpen
|
|
463
|
+
args:
|
|
464
|
+
- open: true
|
|
465
|
+
- id: modal_blur_mask
|
|
466
|
+
type: Modal
|
|
467
|
+
properties:
|
|
468
|
+
title: Blurred Mask
|
|
469
|
+
mask:
|
|
470
|
+
blur: true
|
|
471
|
+
blocks:
|
|
472
|
+
- id: modal_blur_mask_content
|
|
473
|
+
type: Paragraph
|
|
474
|
+
properties:
|
|
475
|
+
content: The page behind the mask is blurred, which keeps attention on the
|
|
476
|
+
dialog.
|
|
477
|
+
```
|
|
478
|
+
|
|
479
|
+
The body shows a skeleton while loading is true, for example while a request that fills the modal is running.
|
|
480
|
+
|
|
481
|
+
```yaml
|
|
482
|
+
- id: modal_loading_trigger
|
|
483
|
+
type: Button
|
|
484
|
+
layout:
|
|
485
|
+
flex: 0 0 auto
|
|
486
|
+
properties:
|
|
487
|
+
title: Open Loading Modal
|
|
488
|
+
color: primary
|
|
489
|
+
variant: outlined
|
|
490
|
+
events:
|
|
491
|
+
onClick:
|
|
492
|
+
- id: modal_loading_open
|
|
493
|
+
type: CallMethod
|
|
494
|
+
params:
|
|
495
|
+
blockId: modal_loading
|
|
496
|
+
method: setOpen
|
|
497
|
+
args:
|
|
498
|
+
- open: true
|
|
499
|
+
- id: modal_loading
|
|
500
|
+
type: Modal
|
|
501
|
+
properties:
|
|
502
|
+
title: Customer Details
|
|
503
|
+
loading: true
|
|
504
|
+
width:
|
|
505
|
+
xs: 90%
|
|
506
|
+
md: 600
|
|
507
|
+
blocks:
|
|
508
|
+
- id: modal_loading_content
|
|
509
|
+
type: Paragraph
|
|
510
|
+
properties:
|
|
511
|
+
content: The body shows a skeleton while loading is true, for example while a
|
|
512
|
+
request that fills the modal is running.
|
|
400
513
|
```
|
|
401
514
|
|
|
402
515
|
Setting footer to false removes the Ok and Cancel buttons entirely. This is useful for informational dialogs or when you provide your own action buttons in the content area.
|
|
@@ -490,7 +603,7 @@ The footer slot replaces the default Ok/Cancel buttons with custom content. This
|
|
|
490
603
|
title: Delete
|
|
491
604
|
color: danger
|
|
492
605
|
variant: text
|
|
493
|
-
icon:
|
|
606
|
+
icon: delete
|
|
494
607
|
- id: modal_footer_actions
|
|
495
608
|
type: Box
|
|
496
609
|
layout:
|
|
@@ -522,7 +635,7 @@ The footer slot replaces the default Ok/Cancel buttons with custom content. This
|
|
|
522
635
|
title: Save
|
|
523
636
|
color: primary
|
|
524
637
|
variant: solid
|
|
525
|
-
icon:
|
|
638
|
+
icon: save
|
|
526
639
|
events:
|
|
527
640
|
onClick:
|
|
528
641
|
- id: modal_footer_save_close
|
|
@@ -541,7 +654,7 @@ The footer slot replaces the default Ok/Cancel buttons with custom content. This
|
|
|
541
654
|
Save/Cancel on the right.
|
|
542
655
|
```
|
|
543
656
|
|
|
544
|
-
The
|
|
657
|
+
The style .wrapper key applies CSS to the modal wrapper element. This can control overflow, positioning, and other layout aspects of the wrapper container.
|
|
545
658
|
|
|
546
659
|
```yaml
|
|
547
660
|
- id: modal_wrapper_style_trigger
|
|
@@ -565,15 +678,16 @@ The wrapperStyle property applies CSS to the modal wrapper element. This can con
|
|
|
565
678
|
type: Modal
|
|
566
679
|
properties:
|
|
567
680
|
title: Wrapper Style Modal
|
|
568
|
-
|
|
681
|
+
style:
|
|
682
|
+
.wrapper:
|
|
569
683
|
overflow: hidden
|
|
570
684
|
blocks:
|
|
571
685
|
- id: modal_wrapper_style_content
|
|
572
686
|
type: Paragraph
|
|
573
687
|
properties:
|
|
574
|
-
content: The
|
|
575
|
-
|
|
576
|
-
|
|
688
|
+
content: The style .wrapper key applies CSS to the modal wrapper element. This
|
|
689
|
+
can control overflow, positioning, and other layout aspects of the
|
|
690
|
+
wrapper container.
|
|
577
691
|
```
|
|
578
692
|
|
|
579
693
|
This modal uses a custom z-index of 2000 to ensure it appears above other overlays. The default is 1000.
|
|
@@ -620,7 +734,7 @@ This modal uses the toggleOpen method. Each click of the button alternates betwe
|
|
|
620
734
|
title: Toggle Modal
|
|
621
735
|
color: primary
|
|
622
736
|
variant: solid
|
|
623
|
-
icon:
|
|
737
|
+
icon: ArrowRightLeft
|
|
624
738
|
events:
|
|
625
739
|
onClick:
|
|
626
740
|
- id: modal_toggle_call
|
|
@@ -761,8 +875,8 @@ A warm-toned modal using an extensive set of theme tokens including headerBg, co
|
|
|
761
875
|
titleColor: "#d46b08"
|
|
762
876
|
colorBgMask: rgba(250, 173, 20, 0.1)
|
|
763
877
|
borderRadiusLG: 20
|
|
764
|
-
headerBorderBottom: 1px solid
|
|
765
|
-
footerBorderTop: 1px solid
|
|
878
|
+
headerBorderBottom: "1px solid #ffd591"
|
|
879
|
+
footerBorderTop: "1px solid #ffd591"
|
|
766
880
|
headerMarginBottom: 0
|
|
767
881
|
footerMarginTop: 0
|
|
768
882
|
headerPadding: 16px 24px
|
|
@@ -876,10 +990,10 @@ Modal supports these CSS keys for Tailwind class targeting: element, header, bod
|
|
|
876
990
|
properties:
|
|
877
991
|
title: Tailwind Styled Modal
|
|
878
992
|
class:
|
|
879
|
-
header: bg-bg-layout
|
|
880
|
-
body: bg-bg-layout p-8
|
|
881
|
-
footer: bg-bg-layout
|
|
882
|
-
content: rounded-2xl overflow-hidden
|
|
993
|
+
.header: bg-bg-layout
|
|
994
|
+
.body: bg-bg-layout p-8
|
|
995
|
+
.footer: bg-bg-layout
|
|
996
|
+
.content: rounded-2xl overflow-hidden
|
|
883
997
|
blocks:
|
|
884
998
|
- id: modal_css_keys_content
|
|
885
999
|
type: Paragraph
|
|
@@ -902,7 +1016,7 @@ Senior Product Designer
|
|
|
902
1016
|
title: Edit Profile
|
|
903
1017
|
color: primary
|
|
904
1018
|
variant: solid
|
|
905
|
-
icon:
|
|
1019
|
+
icon: edit
|
|
906
1020
|
events:
|
|
907
1021
|
onClick:
|
|
908
1022
|
- id: modal_profile_open
|
|
@@ -921,7 +1035,7 @@ Senior Product Designer
|
|
|
921
1035
|
cancelText: Cancel
|
|
922
1036
|
centered: true
|
|
923
1037
|
theme:
|
|
924
|
-
headerBorderBottom: 1px solid
|
|
1038
|
+
headerBorderBottom: "1px solid #f0f0f0"
|
|
925
1039
|
headerMarginBottom: 0
|
|
926
1040
|
events:
|
|
927
1041
|
onOk:
|
|
@@ -942,10 +1056,9 @@ Senior Product Designer
|
|
|
942
1056
|
layout:
|
|
943
1057
|
flex: 0 0 auto
|
|
944
1058
|
properties:
|
|
945
|
-
icon:
|
|
1059
|
+
icon: user
|
|
946
1060
|
size: 72
|
|
947
|
-
color: "#
|
|
948
|
-
backgroundColor: "#1677ff"
|
|
1061
|
+
color: "#1677ff"
|
|
949
1062
|
- id: modal_profile_info
|
|
950
1063
|
type: Box
|
|
951
1064
|
layout:
|
|
@@ -993,7 +1106,7 @@ This action cannot be undone. All project data, files, and team assignments will
|
|
|
993
1106
|
title: Delete Project
|
|
994
1107
|
color: danger
|
|
995
1108
|
variant: solid
|
|
996
|
-
icon:
|
|
1109
|
+
icon: delete
|
|
997
1110
|
events:
|
|
998
1111
|
onClick:
|
|
999
1112
|
- id: modal_confirm_open
|
|
@@ -1061,7 +1174,7 @@ A serene mountain landscape captured at golden hour. Photography by John Doe.
|
|
|
1061
1174
|
title: Preview Image
|
|
1062
1175
|
color: primary
|
|
1063
1176
|
variant: outlined
|
|
1064
|
-
icon:
|
|
1177
|
+
icon: image
|
|
1065
1178
|
events:
|
|
1066
1179
|
onClick:
|
|
1067
1180
|
- id: modal_image_open
|
|
@@ -1123,16 +1236,35 @@ A serene mountain landscape captured at golden hour. Photography by John Doe.
|
|
|
1123
1236
|
| Property | Type | Default | Description |
|
|
1124
1237
|
| --- | --- | --- | --- |
|
|
1125
1238
|
| `centered` | boolean | `false` | Center the modal vertically. |
|
|
1126
|
-
| `closable` | boolean | `true` | Whether a close (x) button is visible on top right of the modal dialog or not. |
|
|
1239
|
+
| `closable` | boolean \| object | `true` | Whether a close (x) button is visible on top right of the modal dialog or not. Set `{ disabled: true }` to show the button disabled. |
|
|
1240
|
+
| `closable.disabled` | boolean | `false` | Show the close button, but disabled. |
|
|
1241
|
+
| `destroyOnHidden` | boolean | `false` | Unmount the blocks inside the modal when it closes, so they mount again (and their onMount events run) each time it opens. Their state is kept. |
|
|
1242
|
+
| `focusable` | object | - | Focus management of the dialog. |
|
|
1243
|
+
| `focusable.trap` | boolean | `true` | Keep keyboard focus inside the dialog while it is open. |
|
|
1244
|
+
| `focusable.focusTriggerAfterClose` | boolean | `true` | Return focus to the element that opened the dialog after it closes. |
|
|
1245
|
+
| `forceRender` | boolean | `false` | Render the blocks inside the modal before it is first opened, so their methods can be called and their onMount events run while it is still closed. |
|
|
1246
|
+
| `keyboard` | boolean | `true` | Whether pressing Esc closes the modal. |
|
|
1247
|
+
| `loading` | boolean | `false` | Show a loading skeleton in place of the modal body. |
|
|
1248
|
+
| `padding` | string | `"default"` | Space inside the modal. `compact` tightens it to 16px. `none` removes the body padding so content such as a table, list or image runs edge to edge; the header and footer keep their padding. Enum: `default`, `compact`, `none`. |
|
|
1249
|
+
| `scrollLock` | boolean | `true` | Whether to lock page scrolling while the modal is open. |
|
|
1127
1250
|
| `title` | string | - | The modal dialog's title - supports html. |
|
|
1128
1251
|
| `footer` | boolean | `true` | Show footer area. |
|
|
1129
|
-
| `mask` | boolean | `true` | Whether show mask
|
|
1130
|
-
| `
|
|
1252
|
+
| `mask` | boolean \| object | `true` | Whether to show the mask. Set an object to configure the mask with `enabled`, `blur` and `closable`. |
|
|
1253
|
+
| `mask.enabled` | boolean | `true` | Whether to show the mask. |
|
|
1254
|
+
| `mask.blur` | boolean | `false` | Blur the page behind the mask. |
|
|
1255
|
+
| `mask.closable` | boolean | - | Whether clicking the mask closes the dialog. Takes precedence over `maskClosable`. |
|
|
1256
|
+
| `maskClosable` | boolean | `true` | Whether to close the modal dialog when the mask (area outside the modal) is clicked. `mask.closable` takes precedence. |
|
|
1131
1257
|
| `okText` | string | - | Text of the Ok button. When unset, antd uses the localized default from ConfigProvider locale. |
|
|
1132
1258
|
| `okButtonProps` | object | - | Set additional properties for the ok button. |
|
|
1133
1259
|
| `cancelText` | string | - | Text of the Cancel button. When unset, antd uses the localized default from ConfigProvider locale. |
|
|
1134
1260
|
| `cancelButtonProps` | object | - | Set additional properties for the cancel button. |
|
|
1135
|
-
| `width` | string \| number | `
|
|
1261
|
+
| `width` | string \| number \| object | `520` | Width of the modal dialog. Set an object of breakpoints (`xs`, `sm`, `md`, `lg`, `xl`, `xxl`) for a responsive width. |
|
|
1262
|
+
| `width.xs` | string \| number | - | Width on extra small screens. |
|
|
1263
|
+
| `width.sm` | string \| number | - | Width on small screens. |
|
|
1264
|
+
| `width.md` | string \| number | - | Width on medium screens. |
|
|
1265
|
+
| `width.lg` | string \| number | - | Width on large screens. |
|
|
1266
|
+
| `width.xl` | string \| number | - | Width on extra large screens. |
|
|
1267
|
+
| `width.xxl` | string \| number | - | Width on extra extra large screens. |
|
|
1136
1268
|
| `zIndex` | integer | `1000` | The z-index of the modal. Useful when displaying two modals simultaneously. |
|
|
1137
1269
|
| `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). |
|
|
1138
1270
|
| `theme.headerBg` | string | - | Background color of the modal header. |
|
|
@@ -1162,12 +1294,15 @@ A serene mountain landscape captured at golden hour. Photography by John Doe.
|
|
|
1162
1294
|
| `onOpen` | \- | Trigger actions when modal is opened. |
|
|
1163
1295
|
| `onCancel` | \- | Trigger actions when Cancel button is clicked. |
|
|
1164
1296
|
| `onClose` | \- | Trigger actions after onOk or onCancel is completed. |
|
|
1297
|
+
| `afterClose` | \- | Trigger actions after the modal has closed and its close animation has finished. |
|
|
1298
|
+
| `afterOpenChange` | `{ open }` | Trigger actions after the open or close animation of the modal has finished. |
|
|
1165
1299
|
|
|
1166
1300
|
| Key | Target |
|
|
1167
1301
|
| --- | --- |
|
|
1168
1302
|
| `/block` | Outer block wrapper (always available). |
|
|
1169
1303
|
| `/element` | The Modal element. |
|
|
1170
1304
|
| `/header` | The Modal header. |
|
|
1305
|
+
| `/title` | The Modal title. |
|
|
1171
1306
|
| `/body` | The Modal body. |
|
|
1172
1307
|
| `/footer` | The Modal footer. |
|
|
1173
1308
|
| `/mask` | The Modal mask. |
|