Skip to main content
Version: 1.0.4

Segment Display

A 7- or 16-segment digital readout. It reads as instrumentation rather than as a web page, which suits a panel screen mimicking a physical display.

The Segment Display component as it renders with its default settings.The Segment Display component as it renders with its default settings.

Reach for it when you need:

  • A prominent readout on a machine-side panel

Component name: SegmentDisplay · Category: Display

In the palette: 7- or 16-segment digital readout for floating-point values

Properties

Any property can be bound to a tag, another component's property, or a query.

PropertyTypeDefaultDescription
valuenumber42.5Numeric value (floating point supported). Ignored when Text is set.
textstring""Literal text to display (uppercased) — overrides Value. Best with the 16-segment variant.
variantenumsevenSegment set. Options: seven · sixteen.
lengthnumber4Number of character cells (field width).
decimalsnumber1Fraction digits shown.
leadingZerosbooleanfalsePad the integer side with 0s instead of blanks.
alignenumrightOptions: left · center · right.
onColorcolor#ffb000
offColorcolorrgba(255,176,0,0.10)Unlit (ghost) segment colour.
showOffSegmentsbooleantrueDraw unlit segments faintly (classic LED look).
backgroundcolor#0b0f14
radiusnumber6
paddingnumber10
slantnumber0Italic skew in degrees (0 = upright).
glowbooleanfalseSubtle bloom around lit segments.
stylestyle{}Custom CSS properties

Events

Attach event actions to these in the Event Manager.

EventLabelGroupPayload
clickClickMouseThe DOM event.
dblclickDouble clickMouseThe DOM event.
contextmenuRight clickMouseThe DOM event.
mouseenterMouse enterMouseThe DOM event.
mouseleaveMouse leaveMouseThe DOM event.
Right-click behaves differently in the Designer

contextmenu fires your configured actions at runtime only — in LiveView and in preview. On the Designer canvas the right-click is captured to open the Event Manager, so testing it there will not run your actions. Test right-click in preview.