StaticText

The StaticText DSP widget represents a field as non-editable text.

StaticText widget in Chrome, with text "This is static text which the user cannot edit"

Widget Summary
Logical Widget Name: StaticText
Maps to Physical Widget : plain
Default definition: StaticText=plain(rawhtml=false;clientsyntaxcheck=false)[syntax=ned,npr]
Supported triggers and properties: See plain
Use for: Displaying data that should not be edited by the user.

Description

The StaticText widget ensures that the value of the field cannot be changed, either by the user or using JavaScript. This is ensured by the syntax settings NED and NPR.

If for some reason you do want to change the value for the field, you can do so if you used the StaticText_updatable logical widget.

Widget Property Restrictions

The following restrictions apply:

  • For the Text Alignment (style:text-decoration) property, the value blink is not supported.

Related Topics