stage
Last updated
Was this helpful?
Was this helpful?
children:
- type: component.entity
options:
children:
- type: component.entity-field
options:
label: Current User
value: =@ctx.user.displayName
- type: component.list
options:
data: =@ctx.datasources.flight-schedule-static
item:
type: component.stage
options:
icon: plane-1
right:
title: =@ctx.current.item.toabrv
subtitle: =@ctx.current.item.board
left:
title: =@ctx.current.item.fromabrv
subtitle: =@ctx.current.item.disembarkchildren:
- type: component.entity
options:
children:
- type: component.entity-field
options:
label: Current User
value: =@ctx.user.displayName
- type: component.list
options:
data: =@ctx.datasources.flight-schedule-dynamic
item:
type: component.stage
options:
icon: plane-1
right:
title: =@ctx.current.item.toabrv
subtitle: =@ctx.current.item.board
left:
title: =@ctx.current.item.fromabrv
subtitle: =@ctx.current.item.disembarkdatasources:
flight-schedule-static:
type: datasource.static
options:
data:
- id: 1
airline: Get Stuff Done Airlines
board: 11:30
disembark: 12:30
date: 30 Jul
flight: A 0123
from: Hawaii
fromabrv: HNL
gate: 16
name: July Nelson
seat: 12F
to: New York
toabrv: JFK
image: https://images.unsplash.com/photo-1436491865332-7a61a109cc05?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxzZWFyY2h8MXx8cGxhbmV8ZW58MHx8MHx8&auto=format&fit=crop&w=500&q=60
- id: 2
airline: Get Stuff Done Airlines
board: 08:10
disembark: 10:45
date: 30 Jul
flight: A 5738
from: Phoenix
fromabrv: PHX
gate: 2
name: Nora Gordon
seat: 27A
to: Alabama
toabrv: MCZ
image: https://images.unsplash.com/photo-1464037866556-6812c9d1c72e?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxzZWFyY2h8Nnx8cGxhbmV8ZW58MHx8MHx8&auto=format&fit=crop&w=500&q=60
- id: 3
airline: Get Stuff Done Airlines
board: 14:00
disembark: 19:59
date: 30 Jul
flight: A 1123
from: Iowa
fromabrv: DSM
gate: 15
name: Tracy Matthews
seat: 13F
to: Ohio
toabrv: DAY
image: https://images.unsplash.com/photo-1488085061387-422e29b40080?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxzZWFyY2h8MTN8fHBsYW5lfGVufDB8fDB8fA%3D%3D&auto=format&fit=crop&w=500&q=60datasources:
flight-schedule-dynamic:
type: "datasource.sqlite"
options:
provider: DATA_PROVIDER_DYNAMIC
entities:
- entity: default/flight-schedule
query: |
SELECT
id,
'$.airline',
'$.board',
'$.disembark',
'$.date',
'$.flight',
'$.from',
'$.fromabrv',
'$.gate',
'$.name',
'$.seat',
'$.to',
'$.toabrv'
FROM [default/flight-schedule]children:
- type: component.entity
options:
children:
- type: component.entity-field
options:
label: Current User
value: =@ctx.user.displayName
- type: component.list
options:
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.board
left:
title: =@ctx.current.item.fromabrv
subtitle: =@ctx.current.item.disembark
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.disembark
- 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:
viewPoint:
centerPosition: middle
address: =@ctx.current.item.tochildren:
- type: component.entity
options:
children:
- type: component.entity-field
options:
label: Current User
value: =@ctx.user.displayName
- type: component.list
options:
data: =@ctx.datasources.flight-schedule-dynamic
item:
type: component.expander
options:
header:
centerElement:
type: component.stage
options:
right:
title: =@ctx.current.item.toabrv
subtitle: =@ctx.current.item.board
left:
title: =@ctx.current.item.fromabrv
subtitle: =@ctx.current.item.disembark
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.disembark
- 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:
viewPoint:
centerPosition: middle
address: =@ctx.current.item.todatasources:
flight-schedule-static:
type: datasource.static
options:
data:
- id: 1
airline: Get Stuff Done Airlines
board: 11:30
disembark: 12:30
date: 30 Jul
flight: A 0123
from: Hawaii
fromabrv: HNL
gate: 16
name: July Nelson
seat: 12F
to: New York
toabrv: JFK
image: https://images.unsplash.com/photo-1436491865332-7a61a109cc05?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxzZWFyY2h8MXx8cGxhbmV8ZW58MHx8MHx8&auto=format&fit=crop&w=500&q=60
- id: 2
airline: Get Stuff Done Airlines
board: 08:10
disembark: 10:45
date: 30 Jul
flight: A 5738
from: Phoenix
fromabrv: PHX
gate: 2
name: Nora Gordon
seat: 27A
to: Alabama
toabrv: MCZ
image: https://images.unsplash.com/photo-1464037866556-6812c9d1c72e?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxzZWFyY2h8Nnx8cGxhbmV8ZW58MHx8MHx8&auto=format&fit=crop&w=500&q=60
- id: 3
airline: Get Stuff Done Airlines
board: 14:00
disembark: 19:59
date: 30 Jul
flight: A 1123
from: Iowa
fromabrv: DSM
gate: 15
name: Tracy Matthews
seat: 13F
to: Ohio
toabrv: DAY
image: https://images.unsplash.com/photo-1488085061387-422e29b40080?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxzZWFyY2h8MTN8fHBsYW5lfGVufDB8fDB8fA%3D%3D&auto=format&fit=crop&w=500&q=60datasources:
flight-schedule-dynamic:
type: "datasource.sqlite"
options:
provider: DATA_PROVIDER_DYNAMIC
entities:
- entity: default/flight-schedule
query: |
SELECT
id,
'$.airline',
'$.board',
'$.disembark',
'$.date',
'$.flight',
'$.from',
'$.fromabrv',
'$.gate',
'$.name',
'$.seat',
'$.to',
'$.toabrv'
FROM [default/flight-schedule]