Jig Types
jig.default
6min
Type jig.default is the most versatile allowing you to create a with various setup options such as:
- Used with a combination of different components and actions.
Jig Default Preview
Core structure | |
children | Add the UI elements (Components) under the children property, for example, component.form. Use Intellisense (ctrl+space) to select a component from the available list. |
title |
The jig.default is the most versatile available allowing you to create a variety of screens. Many options are available for configuration on this , see jig-default-specification for a list of the additional options.
Jig.default as a Form
Form jig
default-form.jigx
datasources
default.jigx
index.jigx
1datasources:
2 employees:
3 type: datasource.sqlite
4 options:
5 provider: DATA_PROVIDER_DYNAMIC
6 entities:
7 - entity: default/employees
8 query: |
9 SELECT
10 id
11 FROM [default/employees]
Jig.default as a List
Default jig as a list
default-list-dynamic.jigx
datasources
default.jigx
1datasources:
2 prods:
3 type: datasource.sqlite
4 options:
5 provider: DATA_PROVIDER_DYNAMIC
6 entities:
7 - entity: default/products
8 query: |
9 SELECT
10 id,
11 '$.title',
12 '$.uri',
13 '$.tag',
14 '$.price',
15 '$.category',
16 '$.sale'
17 FROM [default/products]
18 WHERE '$.category' = 'product' AND '$.sale' IS NULL
19
20 sales:
21 type: datasource.sqlite
22 options:
23 provider: DATA_PROVIDER_DYNAMIC
24 entities:
25 - entity: default/products
26 query: |
27 SELECT
28 id,
29 '$.title',
30 '$.uri',
31 '$.tag',
32 '$.price',
33 '$.category',
34 '$.discount',
35 '$.sale'
36 FROM [default/products]
37 WHERE '$.sale' = 'true'
Other examples of jig.default
Employee default jig
employee-detail-dynamic.jigx
datasources
default.jigx
1title: Employee detail
2type: jig.default
3
4children:
5 - type: component.avatar
6 options:
7 title: ''
8 uri: [email protected]-detail-dynamic.photo
9 size: large
10 align: center
11
12 - type: component.entity
13 options:
14 children:
15 - type: component.section
16 options:
17 title: Personal information
18 children:
19 - type: component.field-row
20 options:
21 children:
22 - type: component.entity-field
23 options:
24 label: Birth date
25 value: [email protected]-detail-dynamic.birthdate
26 - type: component.entity-field
27 options:
28 label: Gender
29 value: [email protected]-detail-dynamic.gender
30 - type: component.field-row
31 options:
32 children:
33 - type: component.entity-field
34 options:
35 label: Email
36 value: [email protected]-detail-dynamic.email
37 contentType: email
38 - type: component.entity-field
39 options:
40 label: Phone
41 value: [email protected]-detail-dynamic.phone
42 contentType: phone
43 - type: component.section
44 options:
45 title: Address
46 children:
47 - type: component.field-row
48 options:
49 children:
50 - type: component.entity-field
51 options:
52 label: Street
53 value: [email protected]-detail-dynamic.street
54 - type: component.entity-field
55 options:
56 label: City
57 value: [email protected]-detail-dynamic.city
58 - type: component.field-row
59 options:
60 children:
61 - type: component.entity-field
62 options:
63 label: State
64 value: [email protected]-detail-dynamic.state
65 - type: component.entity-field
66 options:
67 label: Country
68 value: [email protected]-detail-dynamic.country
69
70 - type: component.list
71 options:
72 data: [email protected]
73 isHorizontal: true
74 item:
75 type: component.pie-chart
76 options:
77 chart:
78 title:
79 text: [email protected]
80 verticalAlign: center
81 subtitle:
82 text: [email protected]
83 verticalAlign: center
84 width: 140
85 height: 140
86 isAnimated: true
87 legend:
88 isHidden: true
89 series:
90 - data: [email protected]
default-product-detail-dynamic.jigx
datasources
default.jigx
index.jigx
1title: Name
2type: jig.default
3
4header:
5 type: component.jig-header
6 options:
7 height: medium
8 children:
9 type: component.image
10 options:
11 title: [email protected]-detail-dynamic.title
12 subtitle: [email protected]-detail-dynamic.price
13 source:
14 uri: [email protected]-detail-dynamic.uri
15
16summary:
17 children:
18 type: component.summary
19 options:
20 layout: default
21 title: Add to cart
22 leftIcon:
23 element: icon
24 name: shopping-cart-empty-1
25
26children:
27 - type: component.entity
28 options:
29 children:
30 - type: component.entity-field
31 options:
32 label: ""
33 isMultiline: true
34 value: [email protected]-detail-dynamic.overview
35 - type: component.expander
36 options:
37 header:
38 centerElement:
39 type: component.titles
40 options:
41 title: Details
42 children:
43 - type: component.entity
44 options:
45 children:
46 - type: component.section
47 options:
48 title: Bluetooth 4.0 connection
49 children:
50 - type: component.entity-field
51 options:
52 label: ""
53 isMultiline: true
54 value: [email protected]-detail-dynamic.bluetooth-detail
55 - type: component.section
56 options:
57 title: Fast, Precise Tracking
58 children:
59 - type: component.entity-field
60 options:
61 label: ""
62 isMultiline: true
63 value: [email protected]-detail-dynamic.precise-detail
64 - type: component.section
65 options:
66 title: Rechargeable Type-C Port
67 children:
68 - type: component.entity-field
69 options:
70 label: ""
71 isMultiline: true
72 value: [email protected]-detail-dynamic.recharge-detail
73 - type: component.section
74 options:
75 title: Modern, Ergonomic Design
76 children:
77 - type: component.entity-field
78 options:
79 label: ""
80 isMultiline: true
81 value: [email protected]-detail-dynamic.design-detail
82
83 - type: component.expander
84 options:
85 header:
86 centerElement:
87 type: component.titles
88 options:
89 title: Tech Specs
90 children:
91 - type: component.entity
92 options:
93 children:
94 - type: component.section
95 options:
96 title: Compatible Devices
97 children:
98 - type: component.entity-field
99 options:
100 label: ""
101 isMultiline: true
102 value: [email protected]-detail-dynamic.compatible-detail
103 - type: component.entity
104 options:
105 children:
106 - type: component.section
107 options:
108 title: Weight
109 children:
110 - type: component.entity-field
111 options:
112 label: ""
113 isMultiline: true
114 value: [email protected]-detail-dynamic.weight-detail
115 - type: component.entity
116 options:
117 children:
118 - type: component.section
119 options:
120 title: Guarantee
121 children:
122 - type: component.entity-field
123 options:
124 label: ""
125 isMultiline: true
126 value: [email protected]-detail-dynamic.guarantee-detail
127
128 - type: component.expander
129 options:
130 header:
131 centerElement:
132 type: component.titles
133 options:
134 title: Shipping & Returns
135 children:
136 - type: component.entity
137 options:
138 children:
139 - type: component.entity-field
140 options:
141 label: ""
142 isMultiline: true
143 value: [email protected]-detail-dynamic.shipping-detail
Updated 24 Jul 2024
Did this page help you?