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: examples/official-site/sqlpage/migrations/01_documentation.sql
+16-15Lines changed: 16 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -36,8 +36,8 @@ INSERT INTO parameter(component, name, description, type, top_level, optional) S
36
36
('description', 'A description of the list item, displayed as greyed-out text.', 'TEXT', FALSE, TRUE),
37
37
('description_md', 'A description of the list item, displayed as greyed-out text, in Markdown format, allowing you to use rich text formatting, including **bold** and *italic* text.', 'TEXT', FALSE, TRUE),
38
38
('link', 'An URL to which the user should be taken when they click on the list item.', 'URL', FALSE, TRUE),
39
-
('icon', 'An icon name (from tabler-icons.io) to display on the left side of the item.', 'TEXT', FALSE, TRUE),
40
-
('color', 'The name of a color, to be displayed as a dot near the list item contents.', 'TEXT', FALSE, TRUE),
39
+
('icon', 'Name of an icon to display on the left side of the item.', 'ICON', FALSE, TRUE),
40
+
('color', 'The name of a color, to be displayed as a dot near the list item contents.', 'COLOR', FALSE, TRUE),
41
41
('active', 'Whether this item in the list is considered "active". Active items are displayed more prominently.', 'BOOLEAN', FALSE, TRUE)
42
42
) x;
43
43
@@ -75,8 +75,9 @@ INSERT INTO parameter(component, name, description, type, top_level, optional) S
75
75
('footer', 'Muted text to display at the bottom of the card.', 'TEXT', FALSE, TRUE),
76
76
('footer_md', 'Muted text to display at the bottom of the card, with rich text formatting in Markdown format.', 'TEXT', FALSE, TRUE),
77
77
('link', 'An URL to which the user should be taken when they click on the card.', 'URL', FALSE, TRUE),
78
-
('icon', 'An icon name (from tabler-icons.io) to display on the left side of the card.', 'TEXT', FALSE, TRUE),
79
-
('color', 'The name of a color, to be displayed on the left of the card to highlight it.', 'TEXT', FALSE, TRUE),
78
+
('footer_link', 'An URL to which the user should be taken when they click on the footer.', 'URL', FALSE, TRUE),
79
+
('icon', 'Name of an icon to display on the left side of the card.', 'ICON', FALSE, TRUE),
80
+
('color', 'The name of a color, to be displayed on the left of the card to highlight it.', 'COLOR', FALSE, TRUE),
80
81
('active', 'Whether this item in the grid is considered "active". Active items are displayed more prominently.', 'BOOLEAN', FALSE, TRUE)
81
82
) x;
82
83
@@ -88,8 +89,8 @@ INSERT INTO example(component, description, properties) VALUES
('color', 'Color of the bars displayed between steps.', 'TEXT', TRUE, TRUE),
134
+
('color', 'Color of the bars displayed between steps.', 'COLOR', TRUE, TRUE),
134
135
('counter', 'Display the number of the step on top of its name.', 'TEXT', TRUE, TRUE),
135
136
('title', 'Title of the section.', 'TEXT', TRUE, TRUE),
136
137
('description', 'Description of the section.', 'TEXT', TRUE, TRUE),
137
138
-- item level
138
139
('title', 'Name of the step.', 'TEXT', FALSE, TRUE),
139
140
('description', 'Tooltip to display when the user passes their mouse over the step''s name.', 'TEXT', FALSE, TRUE),
140
141
('link', 'A target URL to which the user should be taken when they click on the step.', 'URL', FALSE, TRUE),
141
-
('icon', 'An icon name (from tabler-icons.io) to display on the left side of the step name.', 'TEXT', FALSE, TRUE),
142
+
('icon', 'An icon name (from tabler-icons.io) to display on the left side of the step name.', 'ICON', FALSE, TRUE),
142
143
('active', 'Whether this item in the grid is considered "active". Active items are displayed more prominently.', 'BOOLEAN', FALSE, TRUE)
143
144
) x;
144
145
@@ -166,7 +167,7 @@ INSERT INTO parameter(component, name, description, type, top_level, optional) S
166
167
-- item level
167
168
('contents', 'A span of text to display', 'TEXT', FALSE, FALSE),
168
169
('link', 'An URL to which the user should be taken when they click on this span of text.', 'URL', FALSE, TRUE),
169
-
('color', 'The name of a color for this span of text.', 'TEXT', FALSE, TRUE),
170
+
('color', 'The name of a color for this span of text.', 'COLOR', FALSE, TRUE),
170
171
('underline', 'Whether the span of text should be underlined.', 'BOOLEAN', FALSE, TRUE),
171
172
('bold', 'Whether the span of text should be displayed as bold.', 'BOOLEAN', FALSE, TRUE),
172
173
('code', 'Use a monospace font. Useful to display the text as code.', 'BOOLEAN', FALSE, TRUE),
@@ -342,7 +343,7 @@ INSERT INTO parameter(component, name, description, type, top_level, optional) S
342
343
('xticks', 'Number of ticks on the x axis.', 'NUMBER', TRUE, TRUE),
343
344
('marker', 'Marker size', 'NUMBER', TRUE, TRUE),
344
345
('labels', 'Whether to show the data labels on the chart or not.', 'BOOLEAN', TRUE, TRUE),
345
-
('color', 'The name of a color in which to display the chart. If there are multiple series in the chart, this parameter can be repeated multiple times.', 'TEXT', TRUE, TRUE),
346
+
('color', 'The name of a color in which to display the chart. If there are multiple series in the chart, this parameter can be repeated multiple times.', 'COLOR', TRUE, TRUE),
346
347
('stacked', 'Whether to cumulate values from different series.', 'BOOLEAN', TRUE, TRUE),
347
348
('toolbar', 'Whether to display a toolbar at the top right of the chart, that offers downloading the data as CSV.', 'BOOLEAN', TRUE, TRUE),
348
349
('logarithmic', 'Display the y-axis in logarithmic scale.', 'BOOLEAN', TRUE, TRUE),
@@ -443,8 +444,8 @@ INSERT INTO parameter(component, name, description, type, top_level, optional) S
443
444
('separator', 'How individual values should be separated in the CSV. "," by default, set it to "\t" for tab-separated values.', 'TEXT', TRUE, TRUE),
444
445
('title', 'The text displayed on the download button.', 'TEXT', TRUE, FALSE),
445
446
('filename', 'The name of the file that should be downloaded (without the extension).', 'TEXT', TRUE, TRUE),
446
-
('icon', 'Name of the icon (from tabler-icons.io) to display in the button.', 'TEXT', TRUE, TRUE),
447
-
('color', 'Color of the button', 'TEXT', TRUE, TRUE)
447
+
('icon', 'Name of the icon (from tabler-icons.io) to display in the button.', 'ICON', TRUE, TRUE),
448
+
('color', 'Color of the button', 'COLOR', TRUE, TRUE)
448
449
) x;
449
450
450
451
INSERT INTO example(component, description, properties) VALUES
@@ -476,7 +477,7 @@ INSERT INTO parameter(component, name, description, type, top_level, optional) S
476
477
('css', 'The URL of a CSS file to load and apply to the page.', 'URL', TRUE, TRUE),
477
478
('javascript', 'The URL of a Javascript file to load and execute on the page.', 'URL', TRUE, TRUE),
478
479
('image', 'The URL of an image to display next to the page title.', 'URL', TRUE, TRUE),
479
-
('icon', 'Name of an icon (from tabler-icons.io) to display next to the title in the navigation bar.', 'TEXT', TRUE, TRUE),
480
+
('icon', 'Name of an icon (from tabler-icons.io) to display next to the title in the navigation bar.', 'ICON', TRUE, TRUE),
480
481
('menu_item', 'Adds a menu item in the navigation bar at the top of the page. The menu item will have the specified name, and will link to as .sql file of the same name.', 'TEXT', TRUE, TRUE),
481
482
('search_target', 'When this is set, a search field will appear in the top navigation bar, and load the specified sql file with an URL parameter named "search" when the user searches something.', 'TEXT', TRUE, TRUE),
482
483
('norobot', 'Forbids robots to save this page in their database and follow the links on this page. This will prevent this page to appear in Google search results for any query, for instance.', 'BOOLEAN', TRUE, TRUE),
Copy file name to clipboardExpand all lines: examples/official-site/sqlpage/migrations/18_button.sql
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -12,12 +12,12 @@ INSERT INTO parameter(component, name, description, type, top_level, optional) S
12
12
('shape', 'Shape of the buttons (e.g., pill, square)', 'TEXT', TRUE, TRUE),
13
13
-- Item-level parameters (for each button)
14
14
('link', 'The URL to which the button should navigate when clicked.', 'URL', FALSE, TRUE),
15
-
('color', 'The color of the button (e.g., red, green, blue, but also primary, warning, danger, orange, etc.).', 'TEXT', FALSE, TRUE),
15
+
('color', 'The color of the button (e.g., red, green, blue, but also primary, warning, danger, orange, etc.).', 'COLOR', FALSE, TRUE),
16
16
('title', 'The text displayed on the button.', 'TEXT', FALSE, TRUE),
17
17
('disabled', 'Whether the button is disabled or not.', 'BOOLEAN', FALSE, TRUE),
18
-
('outline', 'Outline color of the button (e.g. red, purple, ...)', 'TEXT', FALSE, TRUE),
18
+
('outline', 'Outline color of the button (e.g. red, purple, ...)', 'COLOR', FALSE, TRUE),
19
19
('space_after', 'Whether there should be extra space to the right of the button. In a line of buttons, this will put the buttons before this one on the left, and the ones after on the right.', 'BOOLEAN', FALSE, TRUE),
20
-
('icon', 'An icon (from tabler-icons) to be displayed on the left side of the button.', 'TEXT', FALSE, TRUE)
20
+
('icon', 'Name of an icon to be displayed on the left side of the button.', 'ICON', FALSE, TRUE)
21
21
) x;
22
22
23
23
-- Inserting example information for the button component
0 commit comments