/
summary-cart-action.jigx
89 lines (86 loc) · 2.73 KB
/
summary-cart-action.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
title: Flights
type: jig.list
data: =@ctx.datasources.flight-schedule-static
item:
type: component.expander
options:
children:
- options:
children:
- options:
children:
- options:
label: Boarding
value: =@ctx.current.item.from
type: component.entity-field
- options:
label: Destination
value: =@ctx.current.item.to
type: component.entity-field
type: component.field-row
- options:
children:
- 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
type: component.field-row
- options:
label: Passenger
value: =@ctx.current.item.name
type: component.entity-field
- options:
children:
- 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.entity-field
type: component.field-row
type: component.entity
- options:
address: =@ctx.current.item.to
type: component.location
header:
centerElement:
type: component.stage
options:
left:
subtitle: =@ctx.current.item.board
title: =@ctx.current.item.fromabrv
right:
subtitle: =@ctx.current.item.disembark
title: =@ctx.current.item.toabrv
header:
type: component.jig-header
options:
children:
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
type: component.image
height: medium
summary:
children:
type: component.summary
options:
title: "Flights found:"
layout: cart
value: 3
actions:
- children:
- type: action.go-to
options:
title: Book a flight
linkTo: expander-trip