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
@@ -5,6 +5,7 @@
5
5
- Fix a bug where the new geojson support in the map component would not work when the geojson was passed as a string. This impacted databases that do not support native json objects, such as SQLite.
6
6
- Improve support for geojson points (in addition to polygons and lines) in the map component.
7
7
- Add a new `size` parameter to the map component to set the size of markers.
8
+
- Add the ability to customize top navigation links and to create submenus in the `shell` component.
Copy file name to clipboardExpand all lines: examples/official-site/sqlpage/migrations/01_documentation.sql
+21-3Lines changed: 21 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -500,7 +500,7 @@ INSERT INTO parameter(component, name, description, type, top_level, optional) S
500
500
('javascript', 'The URL of a Javascript file to load and execute on the page.', 'URL', TRUE, TRUE),
501
501
('image', 'The URL of an image to display next to the page title.', 'URL', TRUE, TRUE),
502
502
('icon', 'Name of an icon (from tabler-icons.io) to display next to the title in the navigation bar.', 'ICON', TRUE, TRUE),
503
-
('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),
503
+
('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. A dropdown can be generated by passing a json object with a `title` and `submenu` properties.', 'TEXT', TRUE, TRUE),
504
504
('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),
505
505
('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),
506
506
('font', 'Name of a font to display the text in. This has to be a valid font name from fonts.google.com.', 'TEXT', TRUE, TRUE),
@@ -512,12 +512,30 @@ INSERT INTO parameter(component, name, description, type, top_level, optional) S
512
512
) x;
513
513
514
514
INSERT INTO example(component, description, properties) VALUES
515
-
('shell', 'This example contains the values used for the shell of the page you are currently viewing.',
515
+
('shell', '
516
+
This example contains the values used for the shell of the page you are currently viewing.
517
+
518
+
The `menu_item` property is used both in its simple string form, to generate a link named "functions" that points to "functions.sql",
519
+
and in its object form, to generate a dropdown menu named "Community" with links to the blog, the github repository, and the issues page.
520
+
521
+
The object form can be used directly only on database engines that have a native JSON type.
522
+
On other engines (such as SQLite), you can use the `dynamic` component to generate the same result.
0 commit comments