You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,7 @@
13
13
- add an `image_url` row-level attribute to the [list](https://sql.ophir.dev/documentation.sql?component=list#component) component to display small images in lists.
14
14
- Fix bad contrast in links in custom page footers.
15
15
- Add a new [configuration option](./configuration.md): `environment`. This allows you to set the environment in which SQLPage is running. It can be either `development` or `production`. In `production` mode, SQLPage will hide error messages and stack traces from the user, and will cache sql files in memory to avoid reloading them from disk when under heavy load.
16
+
- Add support for `selected` in multi-select inputs in the [form](https://sql.ophir.dev/documentation.sql?component=form#component) component. This allows you to pre-select some options in a multi-select input.
Copy file name to clipboardExpand all lines: examples/official-site/sqlpage/migrations/01_documentation.sql
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -244,7 +244,7 @@ INSERT INTO parameter(component, name, description, type, top_level, optional) S
244
244
('label', 'A friendly name for the text field to show to the user.', 'TEXT', FALSE, TRUE),
245
245
('placeholder', 'A placeholder text that will be shown in the field when is is empty.', 'TEXT', FALSE, TRUE),
246
246
('value', 'A default value that will already be present in the field when the user loads the page.', 'TEXT', FALSE, TRUE),
247
-
('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', FALSE, TRUE),
247
+
('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),
248
248
('required', 'Set this to true to prevent the form contents from being sent if this field is left empty by the user.', 'BOOL', FALSE, TRUE),
249
249
('min', 'The minimum value to accept for an input of type number', 'NUMBER', FALSE, TRUE),
250
250
('max', 'The minimum value to accept for an input of type number', 'NUMBER', FALSE, TRUE),
@@ -336,7 +336,7 @@ from json_each($preferred_fruits); -- json_each returns a table with a "value" c
0 commit comments