Skip to content

Commit 259177f

Browse files
committed
Updating parameter types for "form"
min, max, step refer to type "number" and should be labeled as REAL. The other parameters refer to integer numbers
1 parent 908b0fb commit 259177f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

examples/official-site/sqlpage/migrations/01_documentation.sql

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -228,21 +228,21 @@ INSERT INTO parameter(component, name, description, type, top_level, optional) S
228228
('value', 'A default value that will already be present in the field when the user loads the page.', 'TEXT', FALSE, TRUE),
229229
('options', 'A json array of objects containing the label and value of all possible options of a select field. Used only when type=select. JSON objects in the array can contain the properties "label", "value" and "selected".', 'JSON', FALSE, TRUE),
230230
('required', 'Set this to true to prevent the form contents from being sent if this field is left empty by the user.', 'BOOLEAN', FALSE, TRUE),
231-
('min', 'The minimum value to accept for an input of type number', 'NUMBER', FALSE, TRUE),
232-
('max', 'The minimum value to accept for an input of type number', 'NUMBER', FALSE, TRUE),
231+
('min', 'The minimum value to accept for an input of type number', 'REAL', FALSE, TRUE),
232+
('max', 'The minimum value to accept for an input of type number', 'REAL', FALSE, TRUE),
233233
('checked', 'Used only for checkboxes and radio buttons. Indicates whether the checkbox should appear as already checked.', 'BOOLEAN', FALSE, TRUE),
234234
('multiple', 'Used only for select elements. Indicates that multiple elements can be selected simultaneously. When using multiple, you should add square brackets after the variable name: ''my_variable[]'' as name', 'BOOLEAN', FALSE, TRUE),
235235
('searchable', 'For select and multiple-select elements, displays them with a nice dropdown that allows searching for options.', 'BOOLEAN', FALSE, TRUE),
236236
('dropdown', 'An alias for "searchable".', 'BOOLEAN', FALSE, TRUE),
237237
('create_new', 'In a multiselect with a dropdown, this option allows the user to enter new values, that are not in the list of options.', 'BOOLEAN', FALSE, TRUE),
238-
('step', 'The increment of values in an input of type number. Set to 1 to allow only integers.', 'NUMBER', FALSE, TRUE),
238+
('step', 'The increment of values in an input of type number. Set to 1 to allow only integers.', 'REAL', FALSE, TRUE),
239239
('description', 'A helper text to display near the input field.', 'TEXT', FALSE, TRUE),
240240
('pattern', 'A regular expression that the value must match. For instance, [0-9]{3} will only accept 3 digits.', 'TEXT', FALSE, TRUE),
241241
('autofocus', 'Automatically focus the field when the page is loaded', 'BOOLEAN', FALSE, TRUE),
242-
('width', 'Width of the form field, between 1 and 12.', 'NUMBER', FALSE, TRUE),
242+
('width', 'Width of the form field, between 1 and 12.', 'INTEGER', FALSE, TRUE),
243243
('autocomplete', 'Whether the browser should suggest previously entered values for this field.', 'BOOLEAN', FALSE, TRUE),
244-
('minlength', 'Minimum length of text allowed in the field.', 'NUMBER', FALSE, TRUE),
245-
('maxlength', 'Maximum length of text allowed in the field.', 'NUMBER', FALSE, TRUE),
244+
('minlength', 'Minimum length of text allowed in the field.', 'INTEGER', FALSE, TRUE),
245+
('maxlength', 'Maximum length of text allowed in the field.', 'INTEGER', FALSE, TRUE),
246246
('formaction', 'When type is "submit", this specifies the URL of the file that will handle the form submission. Useful when you need multiple submit buttons.', 'TEXT', FALSE, TRUE),
247247
('class', 'A CSS class to apply to the form element.', 'TEXT', FALSE, TRUE),
248248
('prefix_icon','Icon to display on the left side of the input field, on the same line.','ICON',FALSE,TRUE),

0 commit comments

Comments
 (0)