About the

Tag items can contain a record link or user record link.

See also: Tag Field, Tag design guidance

Where to use the

Use a!tagItem() in the tags parameter of a!tagField().

Parameters

Using the

The following sections cover important details about the tag item.

Using the text parameter

Using the showBorder and borderColor parameters

Using the icon and iconPosition parameters

Appian Mobile considerations

Older versions of the Appian Mobile app (n-1 and n-2) do not support the showBorder, borderColor, icon, and iconPosition parameters. On those versions, the tag renders using its pre-existing appearance and the new parameters are ignored.

Examples

The following examples demonstrate the tag item.

Use the interactive editor to experiment with examples.

Display a tag with a border

a!tagField( labelPosition: "COLLAPSED", tags: { a!tagItem( text: "Approved", backgroundColor: "#E3F4E1", textColor: "#1E7B34", showBorder: true, borderColor: "POSITIVE" ) } )

Display a tag with an icon

a!tagField( labelPosition: "COLLAPSED", tags: { a!tagItem( text: "At Risk", backgroundColor: "WARN", icon: "exclamation-triangle", iconPosition: "START" ) } )

Display a tag with a border, icon, and large size

a!tagField( labelPosition: "COLLAPSED", size: "LARGE", tags: { a!tagItem( text: "Critical", backgroundColor: "#fdedf0", showBorder: true, borderColor: "NEGATIVE", icon: "exclamation-triangle", iconPosition: "START" ) } )