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
('method', 'Set this to ''GET'' to pass the form contents directly as URL parameters. If the user enters a value v in a field named x, submitting the form will load target.sql?x=v. If target.sql contains SELECT $x, it will display the value v.', 'TEXT', TRUE, TRUE),
196
-
('action', 'An optional link to a target page that will handle the results of the form. By default the target page is the current page. Setting it to the name of a different sql file will load that file when the user submits the form.', 'TEXT', TRUE, TRUE),
196
+
('action', 'An optional link to a target page that will handle the results of the form. By default the target page is the current page with the id of the form (if passed) used as hash - this will bring us back to the location of the form after submission. Setting it to the name of a different sql file will load that file when the user submits the form.', 'TEXT', TRUE, TRUE),
197
197
('title', 'A name to display at the top of the form. It will be displayed in a larger font size at the top of the form.', 'TEXT', TRUE, TRUE),
198
198
('validate', 'The text to display in the button at the bottom of the form that submits the values. Omit this property to let the browser display the default form validation text, or set it to the empty string to remove the button completely.', 'TEXT', TRUE, TRUE),
199
199
('validate_color', 'The color of the button at the bottom of the form that submits the values. Omit this property to use the default color.', 'COLOR', TRUE, TRUE),
@@ -730,3 +730,4 @@ On other engines (such as SQLite), you can use the [`dynamic`](?component=dynami
Copy file name to clipboardExpand all lines: examples/official-site/sqlpage/migrations/13_tab.sql
+5-5
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ VALUES (
24
24
(
25
25
'tab',
26
26
'link',
27
-
'Link to the page to display when the tab is clicked. By default, the link refers to the current page, with a ''tab'' parameter set to the tab''s title.',
27
+
'Link to the page to display when the tab is clicked. By default, the link refers to the current page, with a ''tab'' parameter set to the tab''s title and hash set to the id (if passed) - this brings us back to the location of the tab after submission.',
28
28
'TEXT',
29
29
FALSE,
30
30
TRUE
@@ -88,9 +88,9 @@ View the [dynamic tabs example](examples/tabs.sql).
88
88
JSON(
89
89
'[
90
90
{ "component": "tab" },
91
-
{ "title": "My First tab", "active": true },
92
-
{ "title": "This is tab two" },
93
-
{ "title": "Third tab is crazy" }
91
+
{ "title": "My First tab", "active": true, "id": "first" },
92
+
{ "title": "This is tab two", "id": "second" },
93
+
{ "title": "Third tab is crazy", "id": "third" }
94
94
]'
95
95
)
96
96
),
@@ -106,4 +106,4 @@ View the [dynamic tabs example](examples/tabs.sql).
INSERT INTO parameter(component, top_level, name, description, type, optional)
3
+
SELECT*, 'id', 'id attribute added to the container in HTML. It can be used to target this item through css or for scrolling to this item through links (use "#id" in link url)', 'TEXT', TRUE
4
+
FROM (VALUES
5
+
('alert', TRUE),
6
+
('breadcrumb', TRUE),
7
+
('chart', TRUE),
8
+
-- ('code', TRUE),
9
+
('csv', TRUE),
10
+
('datagrid', TRUE),
11
+
('hero', TRUE),
12
+
('list', TRUE),
13
+
('list', FALSE),
14
+
('map', TRUE),
15
+
('tab', FALSE),
16
+
('table', TRUE),
17
+
('timeline', TRUE),
18
+
('timeline', FALSE),
19
+
-- ('title', TRUE),
20
+
('tracking', TRUE),
21
+
('text', TRUE)
22
+
);
23
+
24
+
-- 2
25
+
INSERT INTO parameter(component, top_level, name, description, type, optional)
26
+
SELECT*, 'id', 'id attribute injected as an anchor in HTML. It can be used for scrolling to this item through links (use "#id" in link url)', 'TEXT', TRUE
27
+
FROM (VALUES
28
+
('steps', TRUE)
29
+
);
30
+
31
+
-- 3
32
+
INSERT INTO parameter(component, top_level, name, description, type, optional)
33
+
SELECT*, 'class', 'class attribute added to the container in HTML. It can be used to apply custom styling to this item through css', 'TEXT', TRUE
0 commit comments