Skip to main content
Version: 2027.02 Beta
View as Markdown

Perspective - LED Display

Component Palette Icon:

Description​

The LED Display is a stylized numeric and/or alphanumeric label. You can choose between a 7 segment and 14 segment visualization style, and also between nine common number format patterns.

The LED Display component has two pre-configured variants for the 7 Segment and 14 Segment styles.

Properties​

Most Properties have binding options. For more information on Bindings, see Types of Bindings in Perspective. This section only documents the Props Category of properties. The other Categories are described on the Perspective Component Properties page.

NameDescriptionProperty Type
valueValue to be displayed.value: numeric
segmentFormatStyle of each character/digit and the number of segments that compose the character. There are two different visual styles: 7 segment and 14 segment. Default is 14 segment.value: string
numberFormatFormat of display for numeric characters, including commas, decimal places, percent, etc. There are nine options available from a dropdown list. Default is #,##0.00.value: string
backgroundColorBackground color of the LED display. Default is #161616. See Color Selector.color
diodeOnColorColor of LED segments when switched on. Default is #1EC963. See Color Selector.color
diodeOffColorColor of LED segments when switched off. Generally different from display background color to preserve analog look. See Color Selector.color
localeLocalization code that determines rules for commas, decimals, etc. Default is en-US.value: string
styleSets a style for this component. Full menu of style options is available for text, background, margin and padding, border, shape and miscellaneous. You can also specify a style class.object

Component Scripts and Events​

Further component interaction and functionality can be configured for all components through scripting and event actions. Right-click on the component or select Components from the Designer menubar to access the configuration popups for both of these options:

  • Configure Events: Accesses the Event Configuration popup where you can configure actions to run in response to events to make the component dynamic. The Events Configurations page shows how to configure events and actions on a Perspective component.

  • Configure Scripts: Accesses the Script Configuration popup where custom methods and message handlers can be added. The Scripting in Perspective section details scripting fundamentals, creating custom methods, and using message handlers.

Example​

Example 1​

PropertyValue
props.value12.34
props.segmentFormat7 segment
props.backgroundColor#D5D5D5
props.diodeOnColor#0062FF
props.OffColor#0062FF1A

Example 2​

PropertyValueStyle Category
props.value52,345.9N/A
props.numberFormat#,##0.00N/A
props.backgroundColor#000000N/A
props.diodeOnColor#00FF00N/A
prop.diodeOffColor#000000N/A
props.style.borderStylegrooveborder
props.style.padding2pxmargin and padding