forked from sqlpage/SQLPage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path30_breadcrumb_component.sql
76 lines (74 loc) · 2.18 KB
/
30_breadcrumb_component.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
INSERT INTO component (name, description, icon, introduced_in_version)
VALUES (
'breadcrumb',
'A secondary navigation aid that helps users understand their location on a website or mobile application.',
'dots',
'0.18.0'
);
INSERT INTO parameter (
component,
name,
description,
type,
top_level,
optional
)
VALUES (
'breadcrumb',
'title',
'Hyperlink text to display.',
'TEXT',
FALSE,
FALSE
),
(
'breadcrumb',
'link',
'Link to the page to display when the link is clicked. By default, the link refers to the current page, with a ''link'' parameter set to the link''s title.',
'TEXT',
FALSE,
TRUE
),
(
'breadcrumb',
'active',
'Whether the link is active or not. Defaults to false.',
'TEXT',
FALSE,
TRUE
),
(
'breadcrumb',
'description',
'Description of the link. This is displayed when the user hovers over the link.',
'TEXT',
FALSE,
TRUE
);
-- Insert example(s) for the component
INSERT INTO example(component, description, properties)
VALUES
(
'breadcrumb',
'Basic usage of the breadcrumb component',
JSON(
'[
{"component":"breadcrumb"},
{"title":"Home","link":"/"},
{"title":"Components", "link":"/documentation.sql"},
{"title":"Breadcrumb", "link":"?component=breadcrumb"}
]'
)
),
(
'breadcrumb',
'Description of a link and selection of the current page.',
JSON(
'[
{"component":"breadcrumb"},
{"title":"Home","link":"/","active": true},
{"title":"Articles","link":"/blog.sql","description":"Stay informed with the latest news"},
{"title":"JSON in SQL","link":"/blog.sql?post=JSON%20in%20SQL%3A%20A%20Comprehensive%20Guide", "description": "Learn advanced json functions for MySQL, SQLite, PostgreSQL, and SQL Server" }
]'
)
);