Tag items can contain a record link or user record link.
See also: Tag Field, Tag design guidance
Use a!tagItem() in the tags parameter of a!tagField().
The following sections cover important details about the tag item.
true, a border renders around the tag using the color set in borderColor. The default border color is "SECONDARY".false (default), no border renders and borderColor has no effect, even if a value is set."START" renders on the visual right and "END" renders on the visual left, consistent with a!buttonWidget() behavior.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.
The following examples demonstrate the tag item.
Use the interactive editor to experiment with examples.
a!tagField(
labelPosition: "COLLAPSED",
tags: {
a!tagItem(
text: "Approved",
backgroundColor: "#E3F4E1",
textColor: "#1E7B34",
showBorder: true,
borderColor: "POSITIVE"
)
}
)
a!tagField(
labelPosition: "COLLAPSED",
tags: {
a!tagItem(
text: "At Risk",
backgroundColor: "WARN",
icon: "exclamation-triangle",
iconPosition: "START"
)
}
)
a!tagField(
labelPosition: "COLLAPSED",
size: "LARGE",
tags: {
a!tagItem(
text: "Critical",
backgroundColor: "#fdedf0",
showBorder: true,
borderColor: "NEGATIVE",
icon: "exclamation-triangle",
iconPosition: "START"
)
}
)