/
default-w-active-item-list-dd.jigx
43 lines (41 loc) · 1.37 KB
/
default-w-active-item-list-dd.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
title: Default Jig with Active Item List
type: jig.default
description: Example of List on Default Jig
header:
type: component.jig-header
options:
height: medium
children:
type: component.image
options:
source:
uri: https://images.unsplash.com/photo-1618038483079-bfe64dcb17f1?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=2070&q=80
children:
- type: component.entity
options:
children:
- type: component.entity-field
options:
label: Current User
value: =@ctx.user.displayName
- type: component.list
options:
hasActiveItem: true
data: =@ctx.datasources.cleaning-services-dynamic
item:
type: component.list-item
options:
title: =@ctx.current.item.service
subtitle: =@ctx.current.item.time & ' mins'
leftElement:
element: image
text: ''
uri: =@ctx.current.item.image
rightElement:
element: value
text: =(@ctx.current.item.hourlyrate) != 'NA' ? '$ ' & $string(@ctx.current.item.hourlyrate) & ' p/hr':'$ ' & $string(@ctx.current.item.onceoffrate) & ' once-off'
onPress:
type: action.set-state
options:
state: =@ctx.solution.state.hasActiveItem
value: true