@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.
- package/LICENSE +201 -0
- package/README.md +20 -0
- package/content/actions/callapi.md +66 -0
- package/content/actions/callmethod.md +41 -0
- package/content/actions/copytoclipboard.md +32 -0
- package/content/actions/displaymessage.md +53 -0
- package/content/actions/downloadcsv.md +89 -0
- package/content/actions/fetch.md +50 -0
- package/content/actions/geolocationcurrentposition.md +56 -0
- package/content/actions/link.md +104 -0
- package/content/actions/login.md +85 -0
- package/content/actions/logout.md +56 -0
- package/content/actions/pdfmake.md +304 -0
- package/content/actions/request.md +67 -0
- package/content/actions/reset.md +27 -0
- package/content/actions/resetvalidation.md +85 -0
- package/content/actions/scrollto.md +85 -0
- package/content/actions/setdarkmode.md +62 -0
- package/content/actions/setfocus.md +33 -0
- package/content/actions/setglobal.md +63 -0
- package/content/actions/setlocale.md +69 -0
- package/content/actions/setstate.md +70 -0
- package/content/actions/throw.md +72 -0
- package/content/actions/validate.md +87 -0
- package/content/actions/wait.md +24 -0
- package/content/agents/agent-endpoint-tools.md +190 -0
- package/content/agents/agent-mcp-tools.md +124 -0
- package/content/agents/agent-multi-agent.md +136 -0
- package/content/agents/agent-properties.md +174 -0
- package/content/agents/agent-server-hooks.md +336 -0
- package/content/agents/agentchat.md +515 -0
- package/content/agents/agentconversations.md +148 -0
- package/content/concepts/ai-agent-docs.md +190 -0
- package/content/concepts/cli.md +213 -0
- package/content/concepts/connections-and-requests.md +7 -0
- package/content/concepts/custom-html.md +3 -0
- package/content/concepts/custom-styling.md +161 -0
- package/content/concepts/events-and-actions.md +271 -0
- package/content/concepts/hosting-files.md +18 -0
- package/content/concepts/i18n.md +320 -0
- package/content/concepts/keyboard-shortcuts.md +218 -0
- package/content/concepts/layout-overview.md +478 -0
- package/content/concepts/lists.md +144 -0
- package/content/concepts/logger.md +43 -0
- package/content/concepts/lowdefy-schema.md +365 -0
- package/content/concepts/menus.md +144 -0
- package/content/concepts/module-authoring.md +564 -0
- package/content/concepts/modules.md +338 -0
- package/content/concepts/operators.md +45 -0
- package/content/concepts/overview.md +19 -0
- package/content/concepts/references-and-templates.md +207 -0
- package/content/concepts/secrets.md +24 -0
- package/content/concepts/selectors.md +143 -0
- package/content/connections/amazonredshift.md +176 -0
- package/content/connections/anthropic.md +232 -0
- package/content/connections/awss3.md +313 -0
- package/content/connections/azureblobstorage.md +133 -0
- package/content/connections/elasticsearch.md +371 -0
- package/content/connections/google.md +228 -0
- package/content/connections/googlecloudstorage.md +139 -0
- package/content/connections/googlesheet.md +313 -0
- package/content/connections/knex.md +206 -0
- package/content/connections/mariadb.md +177 -0
- package/content/connections/mcp.md +134 -0
- package/content/connections/mongodb.md +739 -0
- package/content/connections/mssql.md +191 -0
- package/content/connections/mysql.md +192 -0
- package/content/connections/openai-connection.md +228 -0
- package/content/connections/postgresql.md +200 -0
- package/content/connections/redis.md +116 -0
- package/content/connections/sendgridmail.md +94 -0
- package/content/connections/smtp.md +149 -0
- package/content/connections/sqlite.md +187 -0
- package/content/connections/stripe.md +115 -0
- package/content/container-blocks/affix.md +413 -0
- package/content/container-blocks/alert.md +937 -0
- package/content/container-blocks/badge.md +1222 -0
- package/content/container-blocks/box.md +1453 -0
- package/content/container-blocks/card.md +1200 -0
- package/content/container-blocks/carousel.md +2247 -0
- package/content/container-blocks/collapse.md +1335 -0
- package/content/container-blocks/configprovider.md +1070 -0
- package/content/container-blocks/confirmmodal.md +1159 -0
- package/content/container-blocks/content.md +597 -0
- package/content/container-blocks/descriptions.md +870 -0
- package/content/container-blocks/drawer.md +1379 -0
- package/content/container-blocks/dropdownmenu.md +643 -0
- package/content/container-blocks/flex.md +1510 -0
- package/content/container-blocks/footer.md +380 -0
- package/content/container-blocks/googlemaps.md +546 -0
- package/content/container-blocks/googlemapsheatmap.md +607 -0
- package/content/container-blocks/googlemapsscript.md +61 -0
- package/content/container-blocks/header.md +302 -0
- package/content/container-blocks/label.md +739 -0
- package/content/container-blocks/layout.md +604 -0
- package/content/container-blocks/masonry.md +1090 -0
- package/content/container-blocks/mobilemenu.md +1244 -0
- package/content/container-blocks/modal.md +1180 -0
- package/content/container-blocks/pageheadermenu.md +614 -0
- package/content/container-blocks/pagesidebarlayout.md +438 -0
- package/content/container-blocks/pagesidermenu.md +651 -0
- package/content/container-blocks/popover.md +1421 -0
- package/content/container-blocks/result.md +972 -0
- package/content/container-blocks/sider.md +1064 -0
- package/content/container-blocks/span.md +747 -0
- package/content/container-blocks/spinner.md +267 -0
- package/content/container-blocks/splitter.md +1735 -0
- package/content/container-blocks/tabs.md +1718 -0
- package/content/container-blocks/tooltip.md +1274 -0
- package/content/container-blocks/watermark.md +515 -0
- package/content/controls/for.md +103 -0
- package/content/controls/if.md +107 -0
- package/content/controls/log.md +50 -0
- package/content/controls/parallel.md +71 -0
- package/content/controls/parallel_for.md +36 -0
- package/content/controls/reject.md +56 -0
- package/content/controls/return.md +66 -0
- package/content/controls/set_state.md +98 -0
- package/content/controls/switch.md +90 -0
- package/content/controls/throw.md +79 -0
- package/content/controls/try.md +88 -0
- package/content/deployment/docker.md +149 -0
- package/content/deployment/node-server.md +27 -0
- package/content/deployment/vercel.md +101 -0
- package/content/display-blocks/aggrid.md +1459 -0
- package/content/display-blocks/anchor.md +336 -0
- package/content/display-blocks/avatar.md +1154 -0
- package/content/display-blocks/breadcrumb.md +517 -0
- package/content/display-blocks/button.md +758 -0
- package/content/display-blocks/calendar.md +156 -0
- package/content/display-blocks/dangeroushtml.md +314 -0
- package/content/display-blocks/dangerousmarkdown.md +423 -0
- package/content/display-blocks/diffgit.md +44 -0
- package/content/display-blocks/difflist.md +225 -0
- package/content/display-blocks/diffsidebyside.md +56 -0
- package/content/display-blocks/difftimeline.md +94 -0
- package/content/display-blocks/divider.md +406 -0
- package/content/display-blocks/download.md +60 -0
- package/content/display-blocks/dropdownbutton.md +661 -0
- package/content/display-blocks/echart.md +418 -0
- package/content/display-blocks/floatbutton.md +545 -0
- package/content/display-blocks/html.md +311 -0
- package/content/display-blocks/icon.md +717 -0
- package/content/display-blocks/img.md +479 -0
- package/content/display-blocks/markdown.md +520 -0
- package/content/display-blocks/markdownwithcode.md +730 -0
- package/content/display-blocks/menu.md +1123 -0
- package/content/display-blocks/message.md +941 -0
- package/content/display-blocks/notification.md +1410 -0
- package/content/display-blocks/paragraph.md +643 -0
- package/content/display-blocks/progress.md +818 -0
- package/content/display-blocks/qrcode.md +519 -0
- package/content/display-blocks/s3download.md +240 -0
- package/content/display-blocks/search.md +360 -0
- package/content/display-blocks/skeleton.md +272 -0
- package/content/display-blocks/skeletonavatar.md +222 -0
- package/content/display-blocks/skeletonbutton.md +245 -0
- package/content/display-blocks/skeletoninput.md +223 -0
- package/content/display-blocks/skeletonparagraph.md +201 -0
- package/content/display-blocks/statistic.md +485 -0
- package/content/display-blocks/steps.md +585 -0
- package/content/display-blocks/tag.md +620 -0
- package/content/display-blocks/title.md +654 -0
- package/content/display-blocks/tour.md +2359 -0
- package/content/input-blocks/autocomplete.md +786 -0
- package/content/input-blocks/buttonselector.md +964 -0
- package/content/input-blocks/checkboxselector.md +765 -0
- package/content/input-blocks/checkboxswitch.md +497 -0
- package/content/input-blocks/colorselector.md +884 -0
- package/content/input-blocks/daterangeselector.md +777 -0
- package/content/input-blocks/dateselector.md +693 -0
- package/content/input-blocks/datetimeselector.md +791 -0
- package/content/input-blocks/inputgallery.md +528 -0
- package/content/input-blocks/monthselector.md +717 -0
- package/content/input-blocks/multipleselector.md +1337 -0
- package/content/input-blocks/numberinput.md +855 -0
- package/content/input-blocks/pagination.md +679 -0
- package/content/input-blocks/paragraphinput.md +1664 -0
- package/content/input-blocks/passwordinput.md +480 -0
- package/content/input-blocks/phonenumberinput.md +688 -0
- package/content/input-blocks/radioselector.md +820 -0
- package/content/input-blocks/ratingslider.md +684 -0
- package/content/input-blocks/s3uploadbutton.md +384 -0
- package/content/input-blocks/s3uploaddragger.md +305 -0
- package/content/input-blocks/s3uploadphoto.md +288 -0
- package/content/input-blocks/segmentedselector.md +782 -0
- package/content/input-blocks/selector.md +1162 -0
- package/content/input-blocks/switch.md +552 -0
- package/content/input-blocks/textarea.md +714 -0
- package/content/input-blocks/textinput.md +639 -0
- package/content/input-blocks/tiptapinput.md +226 -0
- package/content/input-blocks/tiptapmentioninput.md +471 -0
- package/content/input-blocks/titleinput.md +1094 -0
- package/content/input-blocks/treeinput.md +144 -0
- package/content/input-blocks/treemultipleselector.md +162 -0
- package/content/input-blocks/treeselector.md +185 -0
- package/content/input-blocks/upload.md +149 -0
- package/content/input-blocks/uploaddragger.md +85 -0
- package/content/input-blocks/uploadphoto.md +84 -0
- package/content/input-blocks/weekselector.md +630 -0
- package/content/list-blocks/controlledlist.md +498 -0
- package/content/list-blocks/list.md +529 -0
- package/content/list-blocks/listselector.md +301 -0
- package/content/list-blocks/masonrylist.md +230 -0
- package/content/migration/upgrade-guide.md +106 -0
- package/content/migration/v4-to-v5.md +589 -0
- package/content/migration/v5-to-v6.md +36 -0
- package/content/operators/_actions.md +58 -0
- package/content/operators/_and.md +76 -0
- package/content/operators/_api.md +254 -0
- package/content/operators/_app.md +114 -0
- package/content/operators/_args.md +65 -0
- package/content/operators/_array.md +331 -0
- package/content/operators/_base64.md +49 -0
- package/content/operators/_boolean.md +33 -0
- package/content/operators/_build.md +166 -0
- package/content/operators/_change_case.md +357 -0
- package/content/operators/_date.md +415 -0
- package/content/operators/_dayjs.md +128 -0
- package/content/operators/_diff.md +61 -0
- package/content/operators/_divide.md +32 -0
- package/content/operators/_eq.md +52 -0
- package/content/operators/_event.md +86 -0
- package/content/operators/_function.md +52 -0
- package/content/operators/_get.md +92 -0
- package/content/operators/_global.md +86 -0
- package/content/operators/_gt.md +50 -0
- package/content/operators/_gte.md +50 -0
- package/content/operators/_hash.md +112 -0
- package/content/operators/_if.md +30 -0
- package/content/operators/_if_none.md +47 -0
- package/content/operators/_index.md +48 -0
- package/content/operators/_input.md +86 -0
- package/content/operators/_intl.md +135 -0
- package/content/operators/_item.md +166 -0
- package/content/operators/_js.md +113 -0
- package/content/operators/_json.md +120 -0
- package/content/operators/_jsonata.md +152 -0
- package/content/operators/_locale.md +65 -0
- package/content/operators/_location.md +40 -0
- package/content/operators/_log.md +22 -0
- package/content/operators/_lt.md +50 -0
- package/content/operators/_lte.md +50 -0
- package/content/operators/_math.md +407 -0
- package/content/operators/_media.md +83 -0
- package/content/operators/_menu.md +62 -0
- package/content/operators/_module.md +340 -0
- package/content/operators/_mql.md +95 -0
- package/content/operators/_ne.md +62 -0
- package/content/operators/_not.md +33 -0
- package/content/operators/_number.md +159 -0
- package/content/operators/_nunjucks.md +117 -0
- package/content/operators/_object.md +253 -0
- package/content/operators/_operator.md +33 -0
- package/content/operators/_or.md +67 -0
- package/content/operators/_product.md +45 -0
- package/content/operators/_random.md +90 -0
- package/content/operators/_ref.md +80 -0
- package/content/operators/_regex.md +69 -0
- package/content/operators/_request.md +35 -0
- package/content/operators/_request_details.md +29 -0
- package/content/operators/_secret.md +56 -0
- package/content/operators/_state.md +134 -0
- package/content/operators/_step.md +98 -0
- package/content/operators/_string.md +327 -0
- package/content/operators/_subtract.md +24 -0
- package/content/operators/_sum.md +45 -0
- package/content/operators/_switch.md +37 -0
- package/content/operators/_t.md +96 -0
- package/content/operators/_theme.md +65 -0
- package/content/operators/_type.md +78 -0
- package/content/operators/_uri.md +49 -0
- package/content/operators/_url_query.md +92 -0
- package/content/operators/_user.md +154 -0
- package/content/operators/_uuid.md +118 -0
- package/content/operators/_var.md +88 -0
- package/content/operators/_yaml.md +96 -0
- package/content/other/introduction.md +39 -0
- package/content/other/next-auth-providers.md +3 -0
- package/content/other/updatesession.md +26 -0
- package/content/plugins/plugins-actions.md +80 -0
- package/content/plugins/plugins-connections.md +98 -0
- package/content/plugins/plugins-dev.md +138 -0
- package/content/plugins/plugins-introduction.md +29 -0
- package/content/plugins/plugins-operators.md +71 -0
- package/content/testing/e2e-auth.md +108 -0
- package/content/testing/e2e-configuration.md +107 -0
- package/content/testing/e2e-getting-started.md +96 -0
- package/content/testing/e2e-introduction.md +53 -0
- package/content/testing/e2e-mocking.md +155 -0
- package/content/testing/e2e-writing-tests.md +214 -0
- package/content/tutorial/tutorial-actions-operators.md +222 -0
- package/content/tutorial/tutorial-add-blocks.md +86 -0
- package/content/tutorial/tutorial-create-page.md +57 -0
- package/content/tutorial/tutorial-display-data-page.md +181 -0
- package/content/tutorial/tutorial-next-steps.md +53 -0
- package/content/tutorial/tutorial-requests-sql.md +22 -0
- package/content/tutorial/tutorial-start.md +71 -0
- package/content/user-authentication/auth-providers.md +15 -0
- package/content/user-authentication/login-and-logout.md +122 -0
- package/content/user-authentication/users-introduction.md +31 -0
- package/index.json +2281 -0
- package/package.json +34 -0
- package/scripts/extractAgentDocs.js +130 -0
|
@@ -0,0 +1,855 @@
|
|
|
1
|
+
# NumberInput
|
|
2
|
+
|
|
3
|
+
Numeric input with step controls, min/max limits, precision, and formatting.
|
|
4
|
+
|
|
5
|
+
```yaml
|
|
6
|
+
- id: basic_default
|
|
7
|
+
type: NumberInput
|
|
8
|
+
properties:
|
|
9
|
+
title: Enter a Number
|
|
10
|
+
placeholder: Type a number
|
|
11
|
+
- id: basic_with_value
|
|
12
|
+
type: NumberInput
|
|
13
|
+
properties:
|
|
14
|
+
title: With Default Value
|
|
15
|
+
placeholder: Has initial value
|
|
16
|
+
events:
|
|
17
|
+
onMount:
|
|
18
|
+
- id: set_default
|
|
19
|
+
type: SetState
|
|
20
|
+
params:
|
|
21
|
+
basic_with_value: 42
|
|
22
|
+
- id: basic_no_label
|
|
23
|
+
type: NumberInput
|
|
24
|
+
properties:
|
|
25
|
+
label:
|
|
26
|
+
disabled: true
|
|
27
|
+
placeholder: No label shown
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
```yaml
|
|
31
|
+
- id: size_small
|
|
32
|
+
type: NumberInput
|
|
33
|
+
properties:
|
|
34
|
+
title: Small
|
|
35
|
+
size: small
|
|
36
|
+
placeholder: Small
|
|
37
|
+
- id: size_default
|
|
38
|
+
type: NumberInput
|
|
39
|
+
properties:
|
|
40
|
+
title: Default
|
|
41
|
+
placeholder: Default
|
|
42
|
+
- id: size_large
|
|
43
|
+
type: NumberInput
|
|
44
|
+
properties:
|
|
45
|
+
title: Large
|
|
46
|
+
size: large
|
|
47
|
+
placeholder: Large
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
```yaml
|
|
51
|
+
- id: min_max
|
|
52
|
+
type: NumberInput
|
|
53
|
+
properties:
|
|
54
|
+
title: Range 1-100
|
|
55
|
+
min: 1
|
|
56
|
+
max: 100
|
|
57
|
+
placeholder: 1 to 100
|
|
58
|
+
- id: min_only
|
|
59
|
+
type: NumberInput
|
|
60
|
+
properties:
|
|
61
|
+
title: Min 0 (No Negatives)
|
|
62
|
+
min: 0
|
|
63
|
+
placeholder: Zero or above
|
|
64
|
+
- id: step_5
|
|
65
|
+
type: NumberInput
|
|
66
|
+
properties:
|
|
67
|
+
title: Step 5
|
|
68
|
+
min: 0
|
|
69
|
+
max: 100
|
|
70
|
+
step: 5
|
|
71
|
+
placeholder: Increments of 5
|
|
72
|
+
- id: step_decimal
|
|
73
|
+
type: NumberInput
|
|
74
|
+
properties:
|
|
75
|
+
title: Decimal Step 0.1
|
|
76
|
+
min: 0
|
|
77
|
+
max: 10
|
|
78
|
+
step: 0.1
|
|
79
|
+
precision: 1
|
|
80
|
+
placeholder: Step 0.1
|
|
81
|
+
- id: step_negative
|
|
82
|
+
type: NumberInput
|
|
83
|
+
properties:
|
|
84
|
+
title: Negative Range
|
|
85
|
+
min: -100
|
|
86
|
+
max: 100
|
|
87
|
+
step: 5
|
|
88
|
+
placeholder: -100 to 100
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
```yaml
|
|
92
|
+
- id: precision_0
|
|
93
|
+
type: NumberInput
|
|
94
|
+
properties:
|
|
95
|
+
title: Integer Only (precision 0)
|
|
96
|
+
precision: 0
|
|
97
|
+
placeholder: No decimals
|
|
98
|
+
- id: precision_1
|
|
99
|
+
type: NumberInput
|
|
100
|
+
properties:
|
|
101
|
+
title: 1 Decimal Place
|
|
102
|
+
precision: 1
|
|
103
|
+
placeholder: e.g. 3.1
|
|
104
|
+
- id: precision_2
|
|
105
|
+
type: NumberInput
|
|
106
|
+
properties:
|
|
107
|
+
title: 2 Decimal Places
|
|
108
|
+
precision: 2
|
|
109
|
+
placeholder: e.g. 3.14
|
|
110
|
+
- id: precision_4
|
|
111
|
+
type: NumberInput
|
|
112
|
+
properties:
|
|
113
|
+
title: 4 Decimal Places
|
|
114
|
+
precision: 4
|
|
115
|
+
placeholder: e.g. 1.2345
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
```yaml
|
|
119
|
+
- id: separator_default
|
|
120
|
+
type: NumberInput
|
|
121
|
+
properties:
|
|
122
|
+
title: Default Separator (.)
|
|
123
|
+
precision: 2
|
|
124
|
+
placeholder: Uses period
|
|
125
|
+
- id: separator_comma
|
|
126
|
+
type: NumberInput
|
|
127
|
+
properties:
|
|
128
|
+
title: Comma Separator
|
|
129
|
+
decimalSeparator: ","
|
|
130
|
+
precision: 2
|
|
131
|
+
placeholder: Uses comma
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
```yaml
|
|
135
|
+
- id: controls_default
|
|
136
|
+
type: NumberInput
|
|
137
|
+
properties:
|
|
138
|
+
title: With Controls (Default)
|
|
139
|
+
controls: true
|
|
140
|
+
placeholder: Has +/- buttons
|
|
141
|
+
- id: controls_off
|
|
142
|
+
type: NumberInput
|
|
143
|
+
properties:
|
|
144
|
+
title: No Controls
|
|
145
|
+
controls: false
|
|
146
|
+
placeholder: No +/- buttons
|
|
147
|
+
- id: controls_with_step
|
|
148
|
+
type: NumberInput
|
|
149
|
+
properties:
|
|
150
|
+
title: Controls with Step 5
|
|
151
|
+
controls: true
|
|
152
|
+
step: 5
|
|
153
|
+
min: 0
|
|
154
|
+
max: 100
|
|
155
|
+
placeholder: Click +/- by 5
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
```yaml
|
|
159
|
+
- id: keyboard_enabled
|
|
160
|
+
type: NumberInput
|
|
161
|
+
properties:
|
|
162
|
+
title: Keyboard Enabled (Default)
|
|
163
|
+
keyboard: true
|
|
164
|
+
placeholder: Use arrow keys
|
|
165
|
+
- id: keyboard_disabled
|
|
166
|
+
type: NumberInput
|
|
167
|
+
properties:
|
|
168
|
+
title: Keyboard Disabled
|
|
169
|
+
keyboard: false
|
|
170
|
+
placeholder: Arrow keys do nothing
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
```yaml
|
|
174
|
+
- id: disabled_empty
|
|
175
|
+
type: NumberInput
|
|
176
|
+
properties:
|
|
177
|
+
title: Disabled (Empty)
|
|
178
|
+
disabled: true
|
|
179
|
+
placeholder: Cannot edit
|
|
180
|
+
- id: disabled_with_value
|
|
181
|
+
type: NumberInput
|
|
182
|
+
properties:
|
|
183
|
+
title: Disabled (With Value)
|
|
184
|
+
disabled: true
|
|
185
|
+
events:
|
|
186
|
+
onMount:
|
|
187
|
+
- id: set_default
|
|
188
|
+
type: SetState
|
|
189
|
+
params:
|
|
190
|
+
disabled_with_value: 50
|
|
191
|
+
- id: disabled_controls
|
|
192
|
+
type: NumberInput
|
|
193
|
+
properties:
|
|
194
|
+
title: Disabled With Controls
|
|
195
|
+
disabled: true
|
|
196
|
+
controls: true
|
|
197
|
+
events:
|
|
198
|
+
onMount:
|
|
199
|
+
- id: set_default
|
|
200
|
+
type: SetState
|
|
201
|
+
params:
|
|
202
|
+
disabled_controls: 25
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
```yaml
|
|
206
|
+
- id: borderless_empty
|
|
207
|
+
type: NumberInput
|
|
208
|
+
properties:
|
|
209
|
+
title: Borderless
|
|
210
|
+
bordered: false
|
|
211
|
+
placeholder: No border style
|
|
212
|
+
- id: borderless_with_value
|
|
213
|
+
type: NumberInput
|
|
214
|
+
properties:
|
|
215
|
+
title: Borderless With Value
|
|
216
|
+
bordered: false
|
|
217
|
+
events:
|
|
218
|
+
onMount:
|
|
219
|
+
- id: set_default
|
|
220
|
+
type: SetState
|
|
221
|
+
params:
|
|
222
|
+
borderless_with_value: 99
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
```yaml
|
|
226
|
+
- id: placeholder_default
|
|
227
|
+
type: NumberInput
|
|
228
|
+
properties:
|
|
229
|
+
title: Default Placeholder
|
|
230
|
+
placeholder: Enter a number...
|
|
231
|
+
- id: placeholder_quantity
|
|
232
|
+
type: NumberInput
|
|
233
|
+
properties:
|
|
234
|
+
title: Quantity
|
|
235
|
+
placeholder: How many?
|
|
236
|
+
min: 0
|
|
237
|
+
- id: placeholder_price
|
|
238
|
+
type: NumberInput
|
|
239
|
+
properties:
|
|
240
|
+
title: Price
|
|
241
|
+
placeholder: 0
|
|
242
|
+
precision: 2
|
|
243
|
+
min: 0
|
|
244
|
+
- id: placeholder_percentage
|
|
245
|
+
type: NumberInput
|
|
246
|
+
properties:
|
|
247
|
+
title: Percentage
|
|
248
|
+
placeholder: 0-100
|
|
249
|
+
min: 0
|
|
250
|
+
max: 100
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
```yaml
|
|
254
|
+
- id: formatter_currency
|
|
255
|
+
type: NumberInput
|
|
256
|
+
properties:
|
|
257
|
+
title: Currency Formatter
|
|
258
|
+
placeholder: Enter amount
|
|
259
|
+
min: 0
|
|
260
|
+
precision: 2
|
|
261
|
+
formatter:
|
|
262
|
+
_function:
|
|
263
|
+
__intl.numberFormat:
|
|
264
|
+
on:
|
|
265
|
+
__args: 0.value
|
|
266
|
+
params:
|
|
267
|
+
locale: en-US
|
|
268
|
+
options:
|
|
269
|
+
style: currency
|
|
270
|
+
currency: USD
|
|
271
|
+
- id: formatter_percent
|
|
272
|
+
type: NumberInput
|
|
273
|
+
properties:
|
|
274
|
+
title: Percentage Formatter
|
|
275
|
+
placeholder: Enter percentage
|
|
276
|
+
min: 0
|
|
277
|
+
max: 100
|
|
278
|
+
formatter:
|
|
279
|
+
_function:
|
|
280
|
+
__if:
|
|
281
|
+
test:
|
|
282
|
+
__ne:
|
|
283
|
+
- __args: 0.value
|
|
284
|
+
- null
|
|
285
|
+
then:
|
|
286
|
+
__string.concat:
|
|
287
|
+
- __args: 0.value
|
|
288
|
+
- "%"
|
|
289
|
+
else: ""
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
*Note: autoFocus is best demonstrated on page load. Set `autoFocus: true` to focus the input when the page renders.*
|
|
293
|
+
|
|
294
|
+
```yaml
|
|
295
|
+
- id: autofocus_off
|
|
296
|
+
type: NumberInput
|
|
297
|
+
properties:
|
|
298
|
+
title: Normal (No AutoFocus)
|
|
299
|
+
autoFocus: false
|
|
300
|
+
placeholder: Click to focus
|
|
301
|
+
- id: autofocus_note
|
|
302
|
+
type: Markdown
|
|
303
|
+
properties:
|
|
304
|
+
content: "*Note: autoFocus is best demonstrated on page load. Set `autoFocus:
|
|
305
|
+
true` to focus the input when the page renders.*"
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
```yaml
|
|
309
|
+
- id: label_default
|
|
310
|
+
type: NumberInput
|
|
311
|
+
properties:
|
|
312
|
+
title: Default Label
|
|
313
|
+
placeholder: Standard label
|
|
314
|
+
- id: label_no_colon
|
|
315
|
+
type: NumberInput
|
|
316
|
+
properties:
|
|
317
|
+
title: No Colon
|
|
318
|
+
placeholder: Label without colon
|
|
319
|
+
label:
|
|
320
|
+
colon: false
|
|
321
|
+
- id: label_right_align
|
|
322
|
+
type: NumberInput
|
|
323
|
+
properties:
|
|
324
|
+
title: Right Aligned Label
|
|
325
|
+
placeholder: Inline right label
|
|
326
|
+
label:
|
|
327
|
+
inline: true
|
|
328
|
+
align: right
|
|
329
|
+
span: 8
|
|
330
|
+
- id: label_extra
|
|
331
|
+
type: NumberInput
|
|
332
|
+
properties:
|
|
333
|
+
title: With Extra Text
|
|
334
|
+
placeholder: Has helper text below
|
|
335
|
+
label:
|
|
336
|
+
extra: Enter a value between 1 and 100.
|
|
337
|
+
- id: label_disabled
|
|
338
|
+
type: NumberInput
|
|
339
|
+
properties:
|
|
340
|
+
placeholder: Label hidden entirely
|
|
341
|
+
label:
|
|
342
|
+
disabled: true
|
|
343
|
+
```
|
|
344
|
+
|
|
345
|
+
```yaml
|
|
346
|
+
- id: label_span_4
|
|
347
|
+
type: NumberInput
|
|
348
|
+
properties:
|
|
349
|
+
title: Span 4
|
|
350
|
+
placeholder: Narrow label
|
|
351
|
+
label:
|
|
352
|
+
inline: true
|
|
353
|
+
span: 4
|
|
354
|
+
- id: label_span_8
|
|
355
|
+
type: NumberInput
|
|
356
|
+
properties:
|
|
357
|
+
title: Span 8
|
|
358
|
+
placeholder: Medium label
|
|
359
|
+
label:
|
|
360
|
+
inline: true
|
|
361
|
+
span: 8
|
|
362
|
+
- id: label_span_12
|
|
363
|
+
type: NumberInput
|
|
364
|
+
properties:
|
|
365
|
+
title: Span 12
|
|
366
|
+
placeholder: Wide label
|
|
367
|
+
label:
|
|
368
|
+
inline: true
|
|
369
|
+
span: 12
|
|
370
|
+
```
|
|
371
|
+
|
|
372
|
+
```yaml
|
|
373
|
+
- id: title_bold
|
|
374
|
+
type: NumberInput
|
|
375
|
+
properties:
|
|
376
|
+
title: <b>Bold</b> Title
|
|
377
|
+
placeholder: HTML bold label
|
|
378
|
+
- id: title_colored
|
|
379
|
+
type: NumberInput
|
|
380
|
+
properties:
|
|
381
|
+
title: '<span style="color: #1677ff;">Blue</span> Title'
|
|
382
|
+
placeholder: HTML colored label
|
|
383
|
+
- id: title_icon_html
|
|
384
|
+
type: NumberInput
|
|
385
|
+
properties:
|
|
386
|
+
title: Quantity 📦
|
|
387
|
+
placeholder: HTML entity in label
|
|
388
|
+
```
|
|
389
|
+
|
|
390
|
+
```yaml
|
|
391
|
+
- id: combined_price
|
|
392
|
+
type: NumberInput
|
|
393
|
+
properties:
|
|
394
|
+
title: Product Price
|
|
395
|
+
min: 0
|
|
396
|
+
max: 99999
|
|
397
|
+
step: 0.01
|
|
398
|
+
precision: 2
|
|
399
|
+
placeholder: 0
|
|
400
|
+
label:
|
|
401
|
+
extra: Enter the product price in USD.
|
|
402
|
+
- id: combined_quantity
|
|
403
|
+
type: NumberInput
|
|
404
|
+
properties:
|
|
405
|
+
title: Quantity
|
|
406
|
+
min: 1
|
|
407
|
+
max: 999
|
|
408
|
+
step: 1
|
|
409
|
+
precision: 0
|
|
410
|
+
placeholder: Enter quantity
|
|
411
|
+
size: large
|
|
412
|
+
- id: combined_percentage
|
|
413
|
+
type: NumberInput
|
|
414
|
+
properties:
|
|
415
|
+
title: Discount (%)
|
|
416
|
+
min: 0
|
|
417
|
+
max: 100
|
|
418
|
+
step: 0.5
|
|
419
|
+
precision: 1
|
|
420
|
+
placeholder: 0
|
|
421
|
+
size: small
|
|
422
|
+
label:
|
|
423
|
+
extra: Percentage discount to apply.
|
|
424
|
+
- id: combined_temperature
|
|
425
|
+
type: NumberInput
|
|
426
|
+
properties:
|
|
427
|
+
title: Temperature
|
|
428
|
+
min: -50
|
|
429
|
+
max: 50
|
|
430
|
+
step: 0.1
|
|
431
|
+
precision: 1
|
|
432
|
+
decimalSeparator: .
|
|
433
|
+
placeholder: Celsius
|
|
434
|
+
- id: combined_borderless_disabled
|
|
435
|
+
type: NumberInput
|
|
436
|
+
properties:
|
|
437
|
+
title: Read-Only Value
|
|
438
|
+
disabled: true
|
|
439
|
+
bordered: false
|
|
440
|
+
precision: 5
|
|
441
|
+
controls: false
|
|
442
|
+
events:
|
|
443
|
+
onMount:
|
|
444
|
+
- id: set_default
|
|
445
|
+
type: SetState
|
|
446
|
+
params:
|
|
447
|
+
combined_borderless_disabled: 3.14159
|
|
448
|
+
```
|
|
449
|
+
|
|
450
|
+
```yaml
|
|
451
|
+
- id: step_1
|
|
452
|
+
type: NumberInput
|
|
453
|
+
properties:
|
|
454
|
+
title: Step 1 (Default)
|
|
455
|
+
step: 1
|
|
456
|
+
placeholder: Whole numbers
|
|
457
|
+
- id: step_0_5
|
|
458
|
+
type: NumberInput
|
|
459
|
+
properties:
|
|
460
|
+
title: Step 0.5
|
|
461
|
+
step: 0.5
|
|
462
|
+
precision: 1
|
|
463
|
+
placeholder: Half increments
|
|
464
|
+
- id: step_0_25
|
|
465
|
+
type: NumberInput
|
|
466
|
+
properties:
|
|
467
|
+
title: Step 0.25
|
|
468
|
+
step: 0.25
|
|
469
|
+
precision: 2
|
|
470
|
+
placeholder: Quarter increments
|
|
471
|
+
- id: step_100
|
|
472
|
+
type: NumberInput
|
|
473
|
+
properties:
|
|
474
|
+
title: Step 100
|
|
475
|
+
step: 100
|
|
476
|
+
min: 0
|
|
477
|
+
max: 10000
|
|
478
|
+
placeholder: Hundreds
|
|
479
|
+
- id: step_0_001
|
|
480
|
+
type: NumberInput
|
|
481
|
+
properties:
|
|
482
|
+
title: Step 0.001
|
|
483
|
+
step: 0.001
|
|
484
|
+
precision: 3
|
|
485
|
+
placeholder: Thousandths
|
|
486
|
+
```
|
|
487
|
+
|
|
488
|
+
```yaml
|
|
489
|
+
- id: style_width
|
|
490
|
+
type: NumberInput
|
|
491
|
+
style:
|
|
492
|
+
.element:
|
|
493
|
+
width: 200px
|
|
494
|
+
properties:
|
|
495
|
+
title: Fixed Width (200px)
|
|
496
|
+
placeholder: 200px wide
|
|
497
|
+
- id: style_background
|
|
498
|
+
type: NumberInput
|
|
499
|
+
style:
|
|
500
|
+
.element: null
|
|
501
|
+
properties:
|
|
502
|
+
title: Custom Background
|
|
503
|
+
placeholder: Light blue background
|
|
504
|
+
- id: style_border
|
|
505
|
+
type: NumberInput
|
|
506
|
+
style:
|
|
507
|
+
.element:
|
|
508
|
+
borderColor: "#52c41a"
|
|
509
|
+
borderWidth: 2px
|
|
510
|
+
properties:
|
|
511
|
+
title: Custom Border
|
|
512
|
+
placeholder: Green border
|
|
513
|
+
- id: style_font
|
|
514
|
+
type: NumberInput
|
|
515
|
+
style:
|
|
516
|
+
.element:
|
|
517
|
+
fontSize: 18px
|
|
518
|
+
fontWeight: bold
|
|
519
|
+
properties:
|
|
520
|
+
title: Custom Font
|
|
521
|
+
placeholder: Large bold text
|
|
522
|
+
- id: style_label
|
|
523
|
+
type: NumberInput
|
|
524
|
+
style:
|
|
525
|
+
.label:
|
|
526
|
+
color: "#722ed1"
|
|
527
|
+
fontWeight: bold
|
|
528
|
+
properties:
|
|
529
|
+
title: Styled Label
|
|
530
|
+
placeholder: Purple bold label
|
|
531
|
+
```
|
|
532
|
+
|
|
533
|
+
```yaml
|
|
534
|
+
- id: class_element
|
|
535
|
+
type: NumberInput
|
|
536
|
+
class:
|
|
537
|
+
element: rounded-lg shadow-md
|
|
538
|
+
properties:
|
|
539
|
+
title: Rounded with Shadow
|
|
540
|
+
placeholder: Tailwind classes
|
|
541
|
+
- id: class_label
|
|
542
|
+
type: NumberInput
|
|
543
|
+
class:
|
|
544
|
+
label: text-blue-600 font-semibold
|
|
545
|
+
properties:
|
|
546
|
+
title: Blue Bold Label
|
|
547
|
+
placeholder: Label class override
|
|
548
|
+
```
|
|
549
|
+
|
|
550
|
+
```yaml
|
|
551
|
+
- id: theme_colors
|
|
552
|
+
type: NumberInput
|
|
553
|
+
properties:
|
|
554
|
+
title: Custom Colors
|
|
555
|
+
placeholder: Blue focus, green hover
|
|
556
|
+
theme:
|
|
557
|
+
activeBorderColor: "#1677ff"
|
|
558
|
+
hoverBorderColor: "#52c41a"
|
|
559
|
+
- id: theme_large_handles
|
|
560
|
+
type: NumberInput
|
|
561
|
+
properties:
|
|
562
|
+
title: Large Handles
|
|
563
|
+
placeholder: Wider +/- area
|
|
564
|
+
theme:
|
|
565
|
+
handleWidth: 30
|
|
566
|
+
handleFontSize: 10
|
|
567
|
+
- id: theme_shadows
|
|
568
|
+
type: NumberInput
|
|
569
|
+
properties:
|
|
570
|
+
title: Custom Active Shadow
|
|
571
|
+
placeholder: Focus to see shadow
|
|
572
|
+
theme:
|
|
573
|
+
activeShadow: 0 0 0 3px rgba(22, 119, 255, 0.2)
|
|
574
|
+
- id: theme_handle_colors
|
|
575
|
+
type: NumberInput
|
|
576
|
+
properties:
|
|
577
|
+
title: Colored Handles
|
|
578
|
+
placeholder: Hover +/- to see color
|
|
579
|
+
theme:
|
|
580
|
+
handleHoverColor: "#eb2f96"
|
|
581
|
+
handleBorderColor: "#d9d9d9"
|
|
582
|
+
- id: theme_small_pill
|
|
583
|
+
type: NumberInput
|
|
584
|
+
properties:
|
|
585
|
+
title: Small Rounded
|
|
586
|
+
size: small
|
|
587
|
+
placeholder: Pill style
|
|
588
|
+
theme:
|
|
589
|
+
borderRadius: 16
|
|
590
|
+
```
|
|
591
|
+
|
|
592
|
+
```yaml
|
|
593
|
+
- id: use_age
|
|
594
|
+
type: NumberInput
|
|
595
|
+
properties:
|
|
596
|
+
title: Age
|
|
597
|
+
min: 0
|
|
598
|
+
max: 150
|
|
599
|
+
precision: 0
|
|
600
|
+
step: 1
|
|
601
|
+
placeholder: Enter age
|
|
602
|
+
label:
|
|
603
|
+
extra: Must be between 0 and 150.
|
|
604
|
+
- id: use_weight
|
|
605
|
+
type: NumberInput
|
|
606
|
+
properties:
|
|
607
|
+
title: Weight (kg)
|
|
608
|
+
min: 0
|
|
609
|
+
max: 500
|
|
610
|
+
precision: 1
|
|
611
|
+
step: 0.1
|
|
612
|
+
placeholder: e.g. 72.5
|
|
613
|
+
- id: use_rating
|
|
614
|
+
type: NumberInput
|
|
615
|
+
properties:
|
|
616
|
+
title: Rating
|
|
617
|
+
min: 1
|
|
618
|
+
max: 5
|
|
619
|
+
precision: 1
|
|
620
|
+
step: 0.5
|
|
621
|
+
placeholder: 1.0 - 5.0
|
|
622
|
+
label:
|
|
623
|
+
extra: Rate from 1 to 5 in half-star increments.
|
|
624
|
+
- id: use_latitude
|
|
625
|
+
type: NumberInput
|
|
626
|
+
properties:
|
|
627
|
+
title: Latitude
|
|
628
|
+
min: -90
|
|
629
|
+
max: 90
|
|
630
|
+
precision: 6
|
|
631
|
+
step: 0.000001
|
|
632
|
+
placeholder: e.g. 40.712776
|
|
633
|
+
controls: false
|
|
634
|
+
- id: use_order_quantity
|
|
635
|
+
type: NumberInput
|
|
636
|
+
properties:
|
|
637
|
+
title: Order Quantity
|
|
638
|
+
min: 1
|
|
639
|
+
max: 999
|
|
640
|
+
precision: 0
|
|
641
|
+
step: 1
|
|
642
|
+
size: large
|
|
643
|
+
placeholder: Qty
|
|
644
|
+
label:
|
|
645
|
+
inline: true
|
|
646
|
+
span: 8
|
|
647
|
+
align: right
|
|
648
|
+
```
|
|
649
|
+
|
|
650
|
+
**Inline Labels:**
|
|
651
|
+
|
|
652
|
+
**Stacked Labels:**
|
|
653
|
+
|
|
654
|
+
**No Labels (Compact):**
|
|
655
|
+
|
|
656
|
+
```yaml
|
|
657
|
+
- id: form_row_label
|
|
658
|
+
type: Markdown
|
|
659
|
+
properties:
|
|
660
|
+
content: "**Inline Labels:**"
|
|
661
|
+
- id: form_inline_row
|
|
662
|
+
type: Box
|
|
663
|
+
layout:
|
|
664
|
+
gap: 16
|
|
665
|
+
blocks:
|
|
666
|
+
- id: form_width
|
|
667
|
+
type: NumberInput
|
|
668
|
+
layout:
|
|
669
|
+
flex: 1 1 0
|
|
670
|
+
properties:
|
|
671
|
+
title: Width
|
|
672
|
+
min: 0
|
|
673
|
+
precision: 0
|
|
674
|
+
placeholder: px
|
|
675
|
+
label:
|
|
676
|
+
inline: true
|
|
677
|
+
span: 10
|
|
678
|
+
- id: form_height
|
|
679
|
+
type: NumberInput
|
|
680
|
+
layout:
|
|
681
|
+
flex: 1 1 0
|
|
682
|
+
properties:
|
|
683
|
+
title: Height
|
|
684
|
+
min: 0
|
|
685
|
+
precision: 0
|
|
686
|
+
placeholder: px
|
|
687
|
+
label:
|
|
688
|
+
inline: true
|
|
689
|
+
span: 10
|
|
690
|
+
- id: form_stacked_label
|
|
691
|
+
type: Markdown
|
|
692
|
+
properties:
|
|
693
|
+
content: "**Stacked Labels:**"
|
|
694
|
+
- id: form_stacked_row
|
|
695
|
+
type: Box
|
|
696
|
+
layout:
|
|
697
|
+
gap: 16
|
|
698
|
+
blocks:
|
|
699
|
+
- id: form_min_price
|
|
700
|
+
type: NumberInput
|
|
701
|
+
layout:
|
|
702
|
+
flex: 1 1 0
|
|
703
|
+
properties:
|
|
704
|
+
title: Min Price
|
|
705
|
+
min: 0
|
|
706
|
+
precision: 2
|
|
707
|
+
placeholder: 0
|
|
708
|
+
- id: form_max_price
|
|
709
|
+
type: NumberInput
|
|
710
|
+
layout:
|
|
711
|
+
flex: 1 1 0
|
|
712
|
+
properties:
|
|
713
|
+
title: Max Price
|
|
714
|
+
min: 0
|
|
715
|
+
precision: 2
|
|
716
|
+
placeholder: 0
|
|
717
|
+
- id: form_no_label_label
|
|
718
|
+
type: Markdown
|
|
719
|
+
properties:
|
|
720
|
+
content: "**No Labels (Compact):**"
|
|
721
|
+
- id: form_no_label_row
|
|
722
|
+
type: Box
|
|
723
|
+
layout:
|
|
724
|
+
gap: 8
|
|
725
|
+
blocks:
|
|
726
|
+
- id: form_x
|
|
727
|
+
type: NumberInput
|
|
728
|
+
layout:
|
|
729
|
+
flex: 1 1 0
|
|
730
|
+
properties:
|
|
731
|
+
placeholder: X
|
|
732
|
+
precision: 0
|
|
733
|
+
label:
|
|
734
|
+
disabled: true
|
|
735
|
+
- id: form_y
|
|
736
|
+
type: NumberInput
|
|
737
|
+
layout:
|
|
738
|
+
flex: 1 1 0
|
|
739
|
+
properties:
|
|
740
|
+
placeholder: Y
|
|
741
|
+
precision: 0
|
|
742
|
+
label:
|
|
743
|
+
disabled: true
|
|
744
|
+
- id: form_z
|
|
745
|
+
type: NumberInput
|
|
746
|
+
layout:
|
|
747
|
+
flex: 1 1 0
|
|
748
|
+
properties:
|
|
749
|
+
placeholder: Z
|
|
750
|
+
precision: 0
|
|
751
|
+
label:
|
|
752
|
+
disabled: true
|
|
753
|
+
```
|
|
754
|
+
|
|
755
|
+
*Validation status is controlled by the Lowdefy validation system. These examples show the visual appearance using theme tokens.*
|
|
756
|
+
|
|
757
|
+
```yaml
|
|
758
|
+
- id: warning_note
|
|
759
|
+
type: Markdown
|
|
760
|
+
properties:
|
|
761
|
+
content: "*Validation status is controlled by the Lowdefy validation system.
|
|
762
|
+
These examples show the visual appearance using theme tokens.*"
|
|
763
|
+
- id: theme_error_colors
|
|
764
|
+
type: NumberInput
|
|
765
|
+
properties:
|
|
766
|
+
title: Error Shadow Theme
|
|
767
|
+
placeholder: Custom error shadow
|
|
768
|
+
theme:
|
|
769
|
+
errorActiveShadow: 0 0 0 3px rgba(255, 77, 79, 0.3)
|
|
770
|
+
- id: theme_warning_colors
|
|
771
|
+
type: NumberInput
|
|
772
|
+
properties:
|
|
773
|
+
title: Warning Shadow Theme
|
|
774
|
+
placeholder: Custom warning shadow
|
|
775
|
+
theme:
|
|
776
|
+
warningActiveShadow: 0 0 0 3px rgba(250, 173, 20, 0.3)
|
|
777
|
+
```
|
|
778
|
+
|
|
779
|
+
| Property | Type | Default | Description |
|
|
780
|
+
| --- | --- | --- | --- |
|
|
781
|
+
| `autoFocus` | boolean | `false` | Autofocus to the block on page load. |
|
|
782
|
+
| `bordered` | boolean | `true` | Whether or not the number input has a border style. Deprecated, use variant instead. |
|
|
783
|
+
| `controls` | boolean | `true` | Whether or not to show the +- controls. |
|
|
784
|
+
| `disabled` | boolean | `false` | Disable the block if true. |
|
|
785
|
+
| `formatter` | object | - | A function specifying the format of the value presented. |
|
|
786
|
+
| `keyboard` | boolean | `true` | If enabled, control input with keyboard up and down. |
|
|
787
|
+
| `label` | object | - | Label properties. |
|
|
788
|
+
| `label.align` | string | `"left"` | Align label left or right when inline. Enum: `left`, `right`. |
|
|
789
|
+
| `label.colon` | boolean | `true` | Append label with colon. |
|
|
790
|
+
| `label.extra` | string | - | Extra text to display beneath the content - supports html. |
|
|
791
|
+
| `label.title` | string | - | Label title - supports html. |
|
|
792
|
+
| `label.tooltip` | string \| object | - | Help tooltip shown via an icon beside the label. A string sets the tooltip text (supports html), or an object to also customize the icon and color. Use the block's onTooltipClick event to respond to clicks on the icon. |
|
|
793
|
+
| `label.tooltip.title` | string | - | Tooltip text shown on hover - supports html. |
|
|
794
|
+
| `label.tooltip.icon` | string | `"AiOutlineQuestionCircle"` | Name of the icon to show beside the label. |
|
|
795
|
+
| `label.tooltip.color` | string | - | Color of the tooltip icon. |
|
|
796
|
+
| `label.span` | number | - | Label inline span. |
|
|
797
|
+
| `label.disabled` | boolean | `false` | Hide input label. |
|
|
798
|
+
| `label.hasFeedback` | boolean | `true` | Display feedback extra from validation, this does not disable validation. |
|
|
799
|
+
| `label.inline` | boolean | `false` | Render input and label inline. |
|
|
800
|
+
| `min` | number | - | Minimum value allowed by the block. |
|
|
801
|
+
| `max` | number | - | Maximum value allowed by the block. |
|
|
802
|
+
| `parser` | object | - | A function specifying the value extracted from the formatter. |
|
|
803
|
+
| `placeholder` | string | - | Placeholder text inside the block to show message before user types input. |
|
|
804
|
+
| `decimalSeparator` | string | - | Separator between number and decimal places. Defaults to the active locale's decimal separator (e.g. "," for de-DE, "." for en-US), or "." when no locale is configured. |
|
|
805
|
+
| `precision` | integer | - | Precision (number of decimal places) allowed by the block. |
|
|
806
|
+
| `size` | string | `"default"` | Size of the block. Enum: `small`, `default`, `large`. |
|
|
807
|
+
| `step` | number | `1` | The number to which the current value is increased or decreased. It can be an integer or decimal. |
|
|
808
|
+
| `title` | string | - | Number input label title - supports html. |
|
|
809
|
+
| `variant` | string | - | Input visual variant. When set, takes precedence over bordered. Enum: `outlined`, `filled`, `borderless`. |
|
|
810
|
+
| `theme` | object | - | Antd design token overrides for this block. See [antd design tokens](https://ant.design/components/overview#design-token). See [Ant Design input-number tokens](https://ant.design/components/input-number#design-token). |
|
|
811
|
+
| `theme.activeBorderColor` | string | - | Border color when the input is active (focused). |
|
|
812
|
+
| `theme.activeShadow` | string | - | Box shadow when the input is active. |
|
|
813
|
+
| `theme.addonBg` | string | `"rgba(0,0,0,0.02)"` | Background color for addon areas. |
|
|
814
|
+
| `theme.activeBg` | string | `"#ffffff"` | Background color when the input is active. |
|
|
815
|
+
| `theme.controlWidth` | number | `90` | Default width of the InputNumber control. |
|
|
816
|
+
| `theme.errorActiveShadow` | string | - | Box shadow when the input is active in error status. |
|
|
817
|
+
| `theme.filledHandleBg` | string | `"#f0f0f0"` | Handle background color in filled variant. |
|
|
818
|
+
| `theme.handleActiveBg` | string | `"rgba(0,0,0,0.02)"` | Handle background color when active (pressed). |
|
|
819
|
+
| `theme.handleBg` | string | `"#ffffff"` | Default handle background color. |
|
|
820
|
+
| `theme.handleBorderColor` | string | `"#d9d9d9"` | Handle border color. |
|
|
821
|
+
| `theme.handleFontSize` | number | `7` | Font size of the handle icons (+/-). |
|
|
822
|
+
| `theme.handleHoverColor` | string | `"#1677ff"` | Handle icon color on hover. |
|
|
823
|
+
| `theme.handleOpacity` | number | `0` | Default opacity of the handles (0 means hidden until hover). |
|
|
824
|
+
| `theme.handleVisible` | string | `"auto"` | Handle visibility mode. |
|
|
825
|
+
| `theme.handleWidth` | number | `22` | Width of the spinner handles. |
|
|
826
|
+
| `theme.hoverBg` | string | `"#ffffff"` | Background color on hover. |
|
|
827
|
+
| `theme.hoverBorderColor` | string | - | Border color on hover. |
|
|
828
|
+
| `theme.inputFontSize` | number | `14` | Font size for the default size input. |
|
|
829
|
+
| `theme.inputFontSizeLG` | number | `16` | Font size for the large size input. |
|
|
830
|
+
| `theme.inputFontSizeSM` | number | `14` | Font size for the small size input. |
|
|
831
|
+
| `theme.paddingBlock` | number | `4` | Vertical padding for the default size. |
|
|
832
|
+
| `theme.paddingBlockLG` | number | `7` | Vertical padding for the large size. |
|
|
833
|
+
| `theme.paddingBlockSM` | number | `0` | Vertical padding for the small size. |
|
|
834
|
+
| `theme.paddingInline` | number | `11` | Horizontal padding for the default size. |
|
|
835
|
+
| `theme.paddingInlineLG` | number | `11` | Horizontal padding for the large size. |
|
|
836
|
+
| `theme.paddingInlineSM` | number | `7` | Horizontal padding for the small size. |
|
|
837
|
+
| `theme.warningActiveShadow` | string | - | Box shadow when the input is active in warning status. |
|
|
838
|
+
|
|
839
|
+
| Event | Event Data | Description |
|
|
840
|
+
| --- | --- | --- |
|
|
841
|
+
| `onBlur` | \- | Trigger action event occurs when number input loses focus. |
|
|
842
|
+
| `onChange` | `{ value }` | Trigger action when number input is changed. |
|
|
843
|
+
| `onFocus` | \- | Trigger action when number input gets focus. |
|
|
844
|
+
| `onPressEnter` | \- | Trigger actions when input is focused and enter is pressed. |
|
|
845
|
+
| `onTooltipClick` | \- | Trigger actions when the tooltip icon is clicked. |
|
|
846
|
+
|
|
847
|
+
| Key | Target |
|
|
848
|
+
| --- | --- |
|
|
849
|
+
| `/block` | Outer block wrapper (always available). |
|
|
850
|
+
| `/element` | The NumberInput element. |
|
|
851
|
+
| `/label` | The NumberInput label. |
|
|
852
|
+
| `/extra` | The NumberInput extra content. |
|
|
853
|
+
| `/feedback` | The NumberInput validation feedback. |
|
|
854
|
+
|
|
855
|
+
No slots defined.
|