Skip to content

Commit 412bdae

Browse files
Update documentation to reflect active property on a menu_item
1 parent ad9aec2 commit 412bdae

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/official-site/sqlpage/migrations/01_documentation.sql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1208,6 +1208,8 @@ and in its object form, to generate a dropdown menu named "Community" with links
12081208
The object form can be used directly only on database engines that have a native JSON type.
12091209
On other engines (such as SQLite), you can use the [`dynamic`](?component=dynamic#component) component to generate the same result.
12101210
1211+
In this example, the "About" submenu is marked as active, which will highlight it in the navigation bar.
1212+
12111213
You see the [page layouts demo](./examples/layouts.sql) for a live example of the different layouts.
12121214
',
12131215
json('[{
@@ -1216,7 +1218,7 @@ You see the [page layouts demo](./examples/layouts.sql) for a live example of th
12161218
"icon": "database",
12171219
"link": "/",
12181220
"menu_item": [
1219-
{"title": "About", "submenu": [
1221+
{"active": true, "title": "About", "submenu": [
12201222
{"link": "/safety.sql", "title": "Security", "icon": "lock"},
12211223
{"link": "/performance.sql", "title": "Performance", "icon": "bolt"},
12221224
{"link": "//github.com/sqlpage/SQLPage/blob/main/LICENSE.txt", "title": "License", "icon": "file-text"},

0 commit comments

Comments
 (0)