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: Cargo.toml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
[package]
2
2
name = "sqlpage"
3
-
version = "0.6.10"
3
+
version = "0.6.11"
4
4
edition = "2021"
5
5
description = "A SQL-only web application framework. Takes .sql files and formats the query result using pre-made configurable professional-looking components."
Copy file name to clipboardExpand all lines: examples/official-site/sqlpage/migrations/01_documentation.sql
+23-3Lines changed: 23 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -223,6 +223,7 @@ INSERT INTO parameter(component, name, description, type, top_level, optional) S
223
223
('label', 'A friendly name for the text field to show to the user.', 'TEXT', FALSE, TRUE),
224
224
('placeholder', 'A placeholder text that will be shown in the field when is is empty.', 'TEXT', FALSE, TRUE),
225
225
('value', 'A default value that will already be present in the field when the user loads the page.', 'TEXT', FALSE, TRUE),
226
+
('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),
226
227
('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),
227
228
('min', 'The minimum value to accept for an input of type number', 'NUMBER', FALSE, TRUE),
228
229
('max', 'The minimum value to accept for an input of type number', 'NUMBER', FALSE, TRUE),
@@ -251,12 +252,31 @@ to allow users to create a new component.
251
252
When loading the page, the value for `$component` will be `NULL` if no value has been submitted.
INSERT INTO component(name, icon, description) VALUES
262
282
('chart', 'timeline', 'A component that plots data. Line, area, bar, and pie charts are all supported. Each item in the component is a data point in the graph.');
0 commit comments