/
summary-counter-expander.jigx
84 lines (80 loc) · 2.62 KB
/
summary-counter-expander.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
title: Today's Flights
type: jig.list
header:
type: component.jig-header
options:
height: medium
children:
type: component.image
options:
source:
uri: https://images.unsplash.com/photo-1490430657723-4d607c1503fc?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxzZWFyY2h8OHx8ZmxpZ2h0c3xlbnwwfHwwfHw%3D&auto=format&fit=crop&w=500&q=60
summary:
children:
type: component.summary
options:
layout: counter
title: Flights found
value: 3
data: =@ctx.datasources.flight-schedule-static
item:
type: component.expander
options:
header:
centerElement:
type: component.stage
options:
right:
title: =@ctx.current.item.toabrv
subtitle: =@ctx.current.item.disembark
left:
title: =@ctx.current.item.fromabrv
subtitle: =@ctx.current.item.board
children:
- type: component.entity
options:
children:
- type: component.field-row
options:
children:
- type: component.entity-field
options:
label: Boarding
value: =@ctx.current.item.from
- type: component.entity-field
options:
label: Destination
value: =@ctx.current.item.to
- type: component.field-row
options:
children:
- type: component.entity-field
options:
label: Board Time
value: =@ctx.current.item.board
- type: component.entity-field
options:
label: Disembark Time
value: =@ctx.current.item.disembark
- type: component.entity-field
options:
label: Passenger
value: =@ctx.current.item.name
- type: component.field-row
options:
children:
- type: component.entity-field
options:
label: Flight
value: =@ctx.current.item.flight
- type: component.entity-field
options:
label: Gate
value: =@ctx.current.item.gate
- type: component.entity-field
options:
label: Seat
value: =@ctx.current.item.seat
- type: component.location
options:
address: =@ctx.current.item.to