/
avatar-on-group-widget.jigx
32 lines (30 loc) · 1.19 KB
/
avatar-on-group-widget.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
type: jig.default
title: Today's patient plan
children:
- type: component.avatar
options:
title: ""
uri: =@ctx.datasources.static-global.picture
size: large
align: left
widgets:
4x2:
type: widget.group
options:
children:
- type: widget.avatar
options:
text: =$substring($substringBefore(@ctx.datasources.static-global.name, " "), 0, 1) & $substring($substringAfter(@ctx.datasources.static-global.name, " "), 0, 1)
uri: =@ctx.datasources.static-global.picture
- type: widget.list
options:
data: =@ctx.datasources.static-global-multiple
item:
type: component.list-item
options:
title: =@ctx.current.item.name
subtitle: =$fromMillis($toMillis(@ctx.current.item.date_from),'[H01]:[m01]') & '-' & $fromMillis($toMillis(@ctx.current.item.date_to),'[H01]:[m01]')
leftElement:
element: avatar
text: =$substring($substringBefore(@ctx.current.item.name, " "), 0, 1) & $substring($substringAfter(@ctx.current.item.name, " "), 0, 1)
uri: =@ctx.current.item.picture