Free cookie consent management tool by TermsFeed

Horizontal Line Component

On This Page

Function

a!horizontalLine( color, weight, marginAbove, marginBelow, showWhen, style )

Displays a horizontal line. This component is best used when you need to visually distinguish and separate content within a page. It enhances readability for complex interfaces and enables the creation of responsive user interfaces.

Parameters

Name Keyword Types Description

Color

color

Text

Determines the horizontal line color. Valid values: Any valid hex color or hex color including transparency, or “SECONDARY” (default), “STANDARD”, “ACCENT”. To add transparency to the hex color, add two additional digits between 00 (more transparent) and FF (less transparent).

Weight

weight

Text

Determines the horizontal line thickness. Valid values: "THIN" (default), "MEDIUM", "THICK".

Margin Above

marginAbove

Text

Determines how much space is added above the component. Valid values: "NONE" (default), "EVEN_LESS", "LESS", "STANDARD" , "MORE", "EVEN_MORE".

Margin Below

marginBelow

Text

Determines how much space is added below the component. Valid values: "NONE", "EVEN_LESS", "LESS", "STANDARD" (default), "MORE", "EVEN_MORE".

Show When

showWhen

Boolean

Determines whether the component is displayed on the interface. When set to false, the component is hidden and is not evaluated. Default: true.

Style

style

Text

Determines how the component displays. Valid values: "SOLID" (default), "DOT", "DASH".

Examples

Use the interactive editor below to test out the example code.

Display horizontal lines with custom colors

{ a!horizontalLine( color: "#93c47d", weight: "THIN", marginAbove: "STANDARD", marginBelow: "STANDARD" ), a!horizontalLine( color: "#8e7cc3", weight: "THIN", marginAbove: "STANDARD", marginBelow: "STANDARD" ) }

Feature compatibility

The table below lists this component's compatibility with various features in Appian.
Feature Compatibility Note
Portals Compatible
Offline Interfaces Compatible
Sync-Time Custom Record Fields Incompatible
Real-Time Custom Record Fields Incompatible

Custom record fields that evaluate in real time must be configured using one or more Custom Field functions.

Process Reports Incompatible

Cannot be used to configure a process report.

Process Events Incompatible

Cannot be used to configure a process event node, such as a start event or timer event.

Process Autoscaling Incompatible

Cannot be used in autoscaled processes.

Event Consumer Filter Conditions Compatible

Can be used in filter conditions.

Event Consumer Event Handlers Compatible

Can be used in event handler expressions.

The following recipes include usage of the Horizontal Line Component.

  • Duration Display (Rich Text, Events):

    Use the duration display pattern to show the amount of time in between events in a quick, easy-to-read way.

Feedback