/
entity-detail.jigx
96 lines (89 loc) · 2.9 KB
/
entity-detail.jigx
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
title: Activity detail
type: jig.default
header:
type: component.jig-header
options:
height: small
children:
type: component.image
options:
title: =@ctx.jig.inputs.name
source:
uri: https://images.unsplash.com/photo-1603988363607-e1e4a66962c6?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxzZWFyY2h8Njl8fHNwb3J0fGVufDB8fDB8fA%3D%3D&auto=format&fit=crop&w=900&q=60
children:
- type: component.entity
options:
isCompact: true
children:
- type: component.section
options:
title: Activity - Compact entity
children:
- type: component.entity-field
options:
label: Activity
value: =@ctx.jig.inputs.name
- type: component.entity-field
options:
label: Location
value: =@ctx.jig.inputs.location
- type: component.entity-field
options:
label: Time
value: =@ctx.jig.inputs.previewDetail
preview:
isCompact: true
actions:
- children:
- type: action.go-to
options:
title: Go To Action
linkTo: placeholder
- type: action.go-to
options:
title: Go to Danger
linkTo: placeholder
style:
isDanger: true
- type: action.go-to
options:
title: Go to Disabled
linkTo: placeholder
style:
isDisabled: true
children:
- type: component.entity
options:
isCompact: false
children:
- type: component.section
options:
title: Activity - Basic entity
children:
- type: component.entity-field
options:
label: Activity
value: =@ctx.jig.inputs.name
- type: component.entity-field
options:
label: Location
value: =@ctx.jig.inputs.location
- type: component.entity-field
options:
label: Time
value: =@ctx.jig.inputs.previewDetail
- type: component.entity-field
options:
label: ""
value: Tap to see a compact entity!
header:
type: component.jig-header
options:
height: medium
children:
type: component.image
options:
title: =@ctx.jig.inputs.name
subtitle: =@ctx.jig.inputs.location
source:
uri: https://images.unsplash.com/photo-1603988363607-e1e4a66962c6?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxzZWFyY2h8Njl8fHNwb3J0fGVufDB8fDB8fA%3D%3D&auto=format&fit=crop&w=900&q=60