Tiles
This section describes the supported configurations and examples of tiles used in card definitions.
Use tiles to display card data in a specific layout or to provide functionality to texts, buttons, and images.
Tile0: Text Label
This tile represents a text label in a single row.
style: Regular or Bold
align: START (left), CENTER, END (right) or JUSTIFY
border color: hex value
text color: hex value
Tile0a: Two Text Labels
This tile represents two texts labels in a single row.
style: Regular or Bold
align: START (left), END (right) or JUSTIFY
border color: hex value
text color: hex value
Tile1: Text Input
This tile represents a text input for a specific key.
align: START (left), END (right) or JUSTIFY
keyboard: text or number
min and max: character length
hint: placeholder for text input
key:
{*sugarLevel}
- The text input is set to keysugarlevel
that will be used and sent through an event.border color: hex value
text color: hex value
Tile1a: Two Rows with Text Input
This tile represents two rows: the first containing a text label and the second containing a text input for a specific key.
Title text is displayed on the first row
Subtitle text is displayed on the second row as an input field
text color: hex value
border color: hex value
align: START, CENTER, END and JUSTIFY
hint: placeholder for text input
keyboard: text or number
min and max length
validation: optional or required, and error message
Tile2: Text Input with Tooltip
This tile represents a text input for a specific key with tooltip.
align: START (fixed left)
keyboard: text or number
min and max: character length
hint: placeholder for text input
key:
{*age}
- The text input is set toage
that will be used and sent through an event.tip: text shows when a user clicks the question mark icon
border color: hex value
text color: hex value
icon image: height and width
Tile3: Date Selector
This tile represents a date selector for a specific key.
title label (left)
min and max: date values
align: START (fixed left)
hint: placeholder for date input
key:
{*dateSelected}
- The date input is set to keydateSelected
that will be used and sent through an event.border color: hex value
text color: hex value
icon image: height and width
Tile5: Stepper
This tile represents a stepper to adjust the value for a specific key.
title label (left)
start: the start number of the stepper
end: the end number of the stepper
align: START (fixed left), JUSTIFY
key:
{status}
- The selected value is set to keystatus
that will be used and sent through an event.border color: hex value
text color: hex value
Tile6: Horizontal Radio Buttons
This tile represents option selectors as radio buttons in horizontal format.
title label (left)
align: START, JUSTIFY
options: key and list
key:
{answer}
- The selected option is set to keyanswer
that will be used and sent through an event.list: dynamic options list
border color: hex value
text color: hex value
Tile6a: Vertical Radio Buttons
This tile represents option selectors as radio buttons in vertical format.
title label (left)
align: START, JUSTIFY
options: key and list
key:
{answer}
- The selected option is set to keyanswer
that will be used and sent through an event.list: dynamic options list
border color: hex value
text color: hex value
Tile7: Horizontal Checkboxes
This tile represents a multi-option selector as checkboxes in horizontal format.
title label (left)
options: key and list
key:
{answer}
- The selected option is set to keyanswer
that will be used and sent through an event.list: dynamic options list
border color: hex value
text color: hex value
Tile7a: Vertical Checkboxes
This tile represents a multi-option selector as checkboxes in vertical format.
title label (left)
options: key and list
key:
{answer}
- The selected option is set to keyanswer
that will be used and sent through an event.border color: hex value
text color: hex value
Tile7b: Vertical Checkboxes with Subtitle
This tile is the same as Tile7a with an extra option for a subtitle label, such as displaying the count in numbers.
For subtitle color handling:
border color: hex value
text color: hex value
In the example, the subtitle is shown as a number next to the title label.
Tile8: Scrollable Table
This tile represents a scrollable table grid.
title label (left)
options: key and list
key:
{answer}
- The selected option is set to keyanswer
that will be used and sent through an event.list: label and data
label: the header title
data: the list of data for each header
Tile9: Scrollable Table without Title Label
This tile is the same as Tile8, with no title.
Tile10: Option Selector
This tile represents an option selector.
title label (left)
options: key and list
key:
{answer
} - The selected option is set to keyanswer
that will be used and sent through an event.list: dynamic options list
border color: hex value
text color: hex value
Tile10a: Toggle Switch
This tile represents a toggle switching button, such as "on" or "off".
title label (left)
options: key and list
key:
{answer}
- The selected option is set to keyanswer
that will be used and sent through an event.list: dynamic options to toggle on and off
border color: hex value
text color: hex value
Tile11: Title and Text
This tile represents two rows with a title and a subtitle text.
title label (left) on first row
subtitle label (left) on second row
border color: hex value
text color: hex value
Tile11a: Title and Scrollable Text
This tile is the same as Tile11 with a scrollable subtitle text.
For subtitle view:
heightMultiplier: "1" - This value is calculated according the screen ratio.
text includes JUSTIFY option
border color: hex value
text color: hex value
Tile12: Dropdown Option Selector
This tile represents a dropdown selector for a list of options.
title label (left)
subtitle: key, hint, and data
key: {*patient} - The selected option is set to key patient that will be used and sent through an event.
hint: placeholder for the selected option
data: an array of options loaded from cardData, for example: ["option 1", "option 2", "option 3"]
text includes JUSTIFY option
border color: hex value
text color: hex value
icon image: height and width
Tile14: Clickable Tile
This tile represents a clickable tile that triggers an action.
title label
uiAction: "${action1}" - This value is correlated with an event handler.
text includes JUSTIFY option
border color: hex value
text color: hex value
icon image: height and width
Tile14a: Clickable Tile with Subtitle
This tile is the same as Tile14 with a subtitle.
style: bold
text includes JUSTIFY option
border color: hex value
text color: hex value
icon image: height and width
Tile16: Image Tile
This tile represents an image that can be loaded locally or from a URL.
image: text, isURL, height and width
text: the source of the image (link or image name) loaded from the cardData
isURL: true or false
size: height and width
Tile17: Clickable Image Grid
This tile represents clickable images to select an option or trigger an action.
options: key and list
key:
{answer5}
- The selected option from the list is set to keyanswer5
that will be used and sent through an event.image: text and isURL
isURL: true or false
Tile17a: Clickable Image Row
This tile represents clickable images in a single row. Clicking the image navigates the user to a target location.
subtitle text: reference to the title that displays below the image
align: START, CENTER, or END
text color: hex value
border color: hex value
uiAction: for example, "action17a2"
SmartTile1: Input Validation Tile
This tile is an input field that is used to implement checks, such as "field format" and "field value".
title text
subtitle text
text color: hex value
font size: number value
border color: hex value
align: START, CENTER, END or JUSTIFY
hint: placeholder for text input
min and max length
fieldFormat: Any supported field format, such as "email".
validation: optional or required, and error message
Last updated