Files
Lorefnon 99c7e02499 Support lazy-loaded content fragments in card component (#175)
* Add support for embed parameter that skips the shell layout

* Add support for cards with remote content

* Adapt js to support lazy-loaded fragments

* Add example

* Reformat & Fix lint errors

* Update query param name and add docs

* Add example

* squash migrations

---------

Co-authored-by: lovasoa <pere.jobs@gmail.com>
2024-01-05 22:17:33 +01:00

22 lines
658 B
SQL

select
'card' as component,
2 as columns;
select
'A card with a Markdown description' as title,
'This is a card with a **Markdown** description.
This is useful if you want to display a lot of text in the card, with many options for formatting, such as
- **bold**,
- *italics*,
- [links](index.sql),
- etc.' as description_md;
select
'A card with lazy-loaded chart' as title,
'/chart-example.sql?_sqlpage_embed' as embed;
select
'A card with lazy-loaded map' as title,
'/map-example.sql?_sqlpage_embed' as embed;
select
'A card with lazy-loaded table' as title,
'/table-example.sql?_sqlpage_embed' as embed;