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.

Core structure

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.

Other options

contentType

Various types of entity fields determine the visual display and behavior of the entity-field, including:

  • default

  • checkbox

  • copy

  • date

  • link

  • phone- format: 1234567890 or +001234567890 (no spaces)

  • signature

  • time

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:

  • isNegative

  • isPositive

  • isPrimary

  • isWarning

Consideration

  • There are two variants of entity fields available - Basic and Compact.

    • The Compact variant requires the property isCompact to 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

Entity fields
Entity fields

Compact

Entity fields compact
Entity fields 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 GitHubarrow-up-right.

Compact - See the full example using static data in GitHubarrow-up-right.

Entity fields with a connected datasource

Basic

Entity fields with datasource
Entity fields with datasource

Compact

Entity fields with datasource
Entity fields with datasource

An example to show how entity fields display when linked to a datasource.

Examples: Basic - See the full example using static data in GitHubarrow-up-right. Compact - See the full example using static data in GitHubarrow-up-right.

Basic - See the full example using dynamic data in GitHubarrow-up-right. Compact - See the full example using dynamic data in GitHubarrow-up-right

Datasources: See the full datasource for static data in GitHubarrow-up-right. See the full datasource for dynamic data in GitHubarrow-up-right.

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 GitHubarrow-up-right.

Entity-field with color
Entity-field with color

Last updated

Was this helpful?