entity-field
Entity fields display data such as text, numbers, dates, and currency from a datasource to the user. These entity fields are found on a jig.default and can be nested under field-row and/or section components but not under component.form as it is used for display purposes only.
Configuration options
Some properties are common to all components, see Common component properties for a list and their configuration options.
label
Add a label for the entity-field, you can add text or an expression.
value
Add a value to display in the entity-field, you can add text or an expression.
contentType
Various types of entity fields determine the visual display and behavior of the entity-field, including:
defaultcheckboxcopydateemail- format: [email protected]linkphone- format: 1234567890 or +001234567890 (no spaces)signaturetime
instanceId
The unique identifier for the entity field.
rightIcon
A list of icons is available. See for more information.
style
The following styling set is available and works in conjunction with rightIcon to determine the color of the icon and the enitity-field line separator:
isNegativeisPositiveisPrimaryisWarning
Consideration
There are two variants of entity fields available - Basic and Compact.
The Compact variant requires the property
isCompactto be set to true.This is the entity component's property, not the entity-field.
When using the
contentType: phone, ensure the phone number entered contains no spaces; this allows you to click on the field to initiate a call from your device.
Examples and code snippets
Different types of entity fields
Basic

Compact

This example demonstrates the visual display and behavior of the entity-fields on this default jig.
Examples:
Basic - See the full example using static data in GitHub.
Compact - See the full example using static data in GitHub.
Entity fields with a connected datasource
Basic

Compact

An example to show how entity fields display when linked to a datasource.
Examples: Basic - See the full example using static data in GitHub. Compact - See the full example using static data in GitHub.
Basic - See the full example using dynamic data in GitHub. Compact - See the full example using dynamic data in GitHub
Datasources: See the full datasource for static data in GitHub. See the full datasource for dynamic data in GitHub.
Entity-fields with right icons in color
In this example, the rightIcons color is determined by adding a style property to each entity-field.
Examples: See the full example using static values in GitHub.

Last updated
Was this helpful?