Skip to content

Commit

Permalink
fix layout example
Browse files Browse the repository at this point in the history
fixes sqlpage#374

Thanks to @amrutadotorg for reporting the issue
  • Loading branch information
lovasoa committed Jun 7, 2024
1 parent f8a0324 commit ec95147
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/official-site/examples/layouts.sql
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
select 'dynamic' as component, properties FROM example WHERE component = 'shell' LIMIT 1;
select 'dynamic' as component,
json_patch(properties->0, json_object('layout', coalesce($layout, 'boxed'))) as properties
FROM example WHERE component = 'shell' LIMIT 1;

select 'text' as component, '
# Layouts
SQLPage comes with a few built-in layouts that you can use to organize the general structure of your application.
Click on one of the layouts below to try it out.
For more information on how to use layouts, see the [shell component documentation](/documentation.sql?component=shell#component).
' as contents_md;

select 'list' as component, 'Available SQLPage shell layouts' as title;
Expand Down

0 comments on commit ec95147

Please sign in to comment.