entity
Considerations
Configuration options
Other options
Examples and code snippets


Entity example
See also
Last updated
Was this helpful?


Last updated
Was this helpful?
Was this helpful?
children:
- type: component.entity
options:
children:
- type: component.section
options:
title: Biographical & Membership Details
children:
- type: component.field-row
options:
children:
- type: component.entity-field
options:
label: First Name
value: Samantha
contentType: default
rightIcon: person
- type: component.entity-field
options:
label: Surname
value: Jackson
contentType: default
rightIcon: person
- type: component.entity-field
options:
label: Member
value: true
contentType: checkbox
- type: component.field-row
options:
children:
- type: component.entity-field
options:
label: Date of Birth
value: 1988-01-19
contentType: date
rightIcon: calendar
- type: component.entity-field
options:
label: Last Login Time
value: =$now()
contentType: time
rightIcon: time-clock-circle
- type: component.section
options:
title: Contact & Other Details
children:
- type: component.entity-field
options:
label: Clipboard Info
value: Copy me!
contentType: copy
- type: component.entity-field
options:
label: Contact Number
value: +2776 123 4567
contentType: phone
rightIcon: phone
- type: component.entity-field
options:
label: Email Address
value: [email protected]
contentType: email
rightIcon: email
- type: component.entity-field
options:
label: Web Address
value: [email protected]
contentType: link
rightIcon: google
- type: component.entity-field
options:
label: About
value: Lorem ipsum dolor sit amet, putent viderer pericula per ex, cu ius sonet referrentur. Cu pri ubique mediocrem maluisset, eum ea assum vivendum constituto. Fierent accusata nec ut, ullum impetus omittam cu per. Perpetua consectetuer no ius. Nam error elitr no, ferri praesent te cum. An commodo aliquando dissentiet duo. Primis eripuit bonorum ius ei, usu cu posse mazim. Elitr alterum mentitum eos cu, sit te quodsi everti neglegentur. Est in diam causae, erat conceptam eum an. Sea ullum causae temporibus ex, libris delectus pro et.
isMultiline: true
contentType: defaultchildren:
- type: component.entity
options:
isCompact: true
children:
- type: component.section
options:
title: Cleaning Services
children:
- type: component.entity-field
options:
label: Service
value: [email protected][0].service
- type: component.entity-field
options:
label: Area
value: [email protected][0].area
- type: component.entity-field
options:
label: Time
value: [email protected][0].time & ' minutes'
- type: component.entity-field
options:
label: Indoor
value: [email protected][0].indoor
contentType: checkbox
- type: component.entity-field
options:
label: Description
value: [email protected][0].description
isMultiline: true
- type: component.section
options:
title: Rates
children:
- type: component.entity-field
options:
label: Hourly Rate
value: [email protected][0].hourlyrate != null ? @ctx.datasources.cleaning-services[0].hourlyrate :'N/A'
- type: component.entity-field
options:
label: Once Off Rate
value: [email protected][0].onceoffrate != null ? @ctx.datasources.cleaning-services[0].onceoffrate :'N/A'datasources:
cleaning-services:
type: datasource.sqlite
options:
provider: DATA_PROVIDER_DYNAMIC
entities:
- entity: default/cleaning-services
query: |
SELECT
id,
'$.area',
'$.description',
'$.hourlyrate',
'$.illustration',
'$.image',
'$.indoor',
'$.onceoffrate',
'$.service',
'$.time'
FROM [default/cleaning-services] ORDER BY '$.service' ASC