Skip to main content
Version: Next

Tank

A liquid-level tank with a fill indicator — the level shown as the thing it is.

The Tank component as it renders with its default settings.The Tank component as it renders with its default settings.

Reach for it when you need:

  • Tank and silo levels on a process mimic

Component name: Tank · Category: Display

In the palette: Liquid level tank with fill indicator

Properties

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

PropertyTypeDefaultDescription
levelnumber75
variantenum2dFlat 2D rounded-rect tank, a shaded 3D cylinder, or a 2D circle. Options: 2d · 3d · circle.
borderRadiusnumber8Corner radius of the 2D tank body (2D variant only).
minnumber0
maxnumber100
unitstring%
fillColorcolorhsl(199 89% 48%)
strokeColorcolorvar(--widget-label)
levelColorcolorvar(--widget-value)
levelSizenumber18
decimalsnumber0Fraction digits shown. 1.0.4
enableScalebooleantrue
scaleCountnumber5Number of scale markings
scaleColorcolorvar(--widget-scale)
labelstringTank
enableLabelbooleantrue
labelColorcolorvar(--widget-label)
labelSizenumber11
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.

Notes

On a P&ID mimic, pair it with vessel symbols and orthogonal pipe runs from the drawing tools.

By default a numeric readout shows whole numbers. decimals (0–6) is what gets the fraction back: a tag reading 23.998 displays as 24 until you ask for more, and Math.round is not a formatting choice — it is a loss of data with no way to recover it from the screen. Every numeric widget formats through the same helper, so two widgets bound to the same tag cannot disagree about how many digits it has.