Skip to content

Commit 614205b

Browse files
committed
add a new simpler foldable component example
1 parent 63045dd commit 614205b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

examples/official-site/sqlpage/migrations/52_foldable.sql

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ INSERT INTO parameter(component, name, description, type, top_level, optional) S
1212
('expanded', 'If set to TRUE, the foldable item starts in an expanded state. Defaults FALSE', 'BOOLEAN', FALSE, TRUE)
1313
) x;
1414

15+
INSERT INTO example(component, description, properties) VALUES
16+
('foldable', 'A single foldable paragraph of text', json('[
17+
{"component":"foldable"},
18+
{"title":"The foldable component", "description": "This is a simple foldable component. It can be used to show and hide content. It is a list of items, each with a title and a description. The description is displayed when the item is expanded."},
19+
]'));
20+
1521
INSERT INTO example(component, description, properties) VALUES
1622
('foldable', 'A SQLPage-themed foldable list with Markdown', json('[
1723
{"component":"foldable"},

0 commit comments

Comments
 (0)