@@ -8,6 +8,8 @@ INSERT INTO component(name, icon, description, introduced_in_version) VALUES
8
8
INSERT INTO parameter(component, name, description, type, top_level, optional) SELECT ' big_number' , * FROM (VALUES
9
9
-- Top-level parameters (for the whole big_number list)
10
10
(' columns' , ' The number of columns to display the big numbers in (default is one column per item).' , ' INTEGER' , TRUE, TRUE),
11
+ (' id' , ' An optional ID to be used as an anchor for links.' , ' TEXT' , TRUE, TRUE),
12
+ (' class' , ' An optional CSS class to be added to the component for custom styling' , ' TEXT' , TRUE, TRUE),
11
13
-- Item-level parameters (for each big number)
12
14
(' title' , ' The title or label for the big number.' , ' TEXT' , FALSE, TRUE),
13
15
(' value' , ' The main value to be displayed prominently.' , ' TEXT' , FALSE, FALSE),
@@ -45,12 +47,12 @@ INSERT INTO example(component, description, properties) VALUES
45
47
INSERT INTO example(component, description, properties) VALUES
46
48
(' big_number' , ' Big numbers with dropdowns and customized layout' ,
47
49
json(' [
48
- {"component":"big_number", "columns":3},
50
+ {"component":"big_number", "columns":3, "id":"colorfull_dashboard" },
49
51
{"title":"Users", "value":"1,234", "color": "red" },
50
52
{"title":"Orders", "value":56, "color": "green" },
51
53
{"title":"Revenue", "value":"9,876", "unit": "€", "color": "blue", "dropdown_item": [
52
- {"label":"This week", "link":"?days=7"},
53
- {"label":"This month", "link":"?days=30"},
54
- {"label":"This quarter", "link":"?days=90"}
54
+ {"label":"This week", "link":"?days=7&component=big_number#colorfull_dashboard "},
55
+ {"label":"This month", "link":"?days=30&component=big_number#colorfull_dashboard "},
56
+ {"label":"This quarter", "link":"?days=90&component=big_number#colorfull_dashboard "}
55
57
]}
56
58
]' ));
0 commit comments