NumericOutput

<< 点击显示目录 >>

主页  mappView帮助助手 > mapp View帮助信息 > Widgets  > Numeric  >

NumericOutput

Widget "NumericOutput" displays a numerical value.

The following properties cannot be used in compound widget "Mapping":

zIndex, left, top, height, width, maxHeight, minHeight, maxWidth, minWidth

Appearance

numericoutput_editor

numericoutput_browser

Editor

Web browser

Properties

Name

Type

Description

Bindable

Necessary

Default value

ellipsis

Boolean

Defines whether a number that is too long should be indicated by an ellipsis, e.g. "12012 ..." instead of "120125100".

 

 

false

enable

Boolean

Defines the usability of the widget. A disabled widget (enable=false) does not react to user interaction and does not trigger events. The "enable" behavior is inherited from the container widgets to the child widgets.

check

 

true

format

MeasurementSystemFormat

Defines the number format for the widget.

check

 

{'metric':{ 'decimalPlaces' : 1, 'minimumIntegerDigits' : 1 }, 'imperial' :{ 'decimalPlaces' : 1, 'minimumIntegerDigits' : 1 }, 'imperial-us' :{ 'decimalPlaces' : 1, 'minimumIntegerDigits' : 1 }}

maxValue

Number

Defines the maximum permissible value for value binding.

With node binding, the "high" attribute for the EU range from the OPC UA variable is used.

 

 

100

minValue

Number

Defines the minimum permissible value for value binding.

With node binding, the "low" attribute for the EU range from the OPC UA variable is used.

 

 

0

node

Node

Value with unit for node binding.

check

 

 

permissionOperate

RoleCollection

Defines the roles that are permitted to use the widget. For roles without sufficient rights, the widget does not react to user interaction and does not trigger events.

 

 

 

permissionView

RoleCollection

Defines the roles that are permitted to see the widget. For roles without sufficient rights, the widget is hidden.

 

 

 

showUnit

Boolean

Defines whether the unit should be displayed. A node binding is necessary for this.

 

 

true

style

StyleReference

Reference to a customizable widget style.

check

 

default

unit

MeasurementSystemUnit

Defines the unit code of the widget.

check

 

 

unitAlign

ImageAlign

Defines the position of the unit, e.g. °C.

 

 

left

unitWidth

Size

Defines the minimum width of the unit's area. Value 0 means that an automatic width is set in relation to the size of the widget.

 

 

0

useDigitGrouping

Boolean

Defines whether number grouping should take place.

If useDigitGrouping = true, the number 100000 will become 100,000, for example.

 

 

false

value

Number

Defines the value displayed by the widget.

check

 

0

visible

Boolean

Defines the visibility of the widget. The widget can be hidden with visible=false. (visible = true, hidden = false). The "visible" behavior is inherited from the container widget to the child widgets.

check

 

true

zIndex

UInteger

zIndex determines the z-order of the widget. With overlapping widgets, the zIndex determines which widget is on the top and which one is on the bottom. The widget with the larger zIndex is on top, and the one with the smaller zIndex is on the bottom. The zIndex must be unique within a piece of content or a container widget. The zIndex is automatically assigned by the visual editor and can therefore be changed via the toolbar.

 

check

 

left

Integer

Absolute position measured from the left border of the surrounded element (e.g. container widget or content).

 

 

 

top

Integer

Absolute position measured from the top border of the surrounded element (e.g. container widget or content).

 

 

 

height

AutoSize

Defines the total height of the widget in pixels.

A value in % refers to the height of the surrounding element.If the value is set to "auto", the height is defined by the contents.

 

 

30

width

AutoSize

Defines the total width of the widget in pixels.

A value in % refers to the width of the surrounding element.If the value is set to "auto", the width is defined by the contents.

 

 

100

unitTextAlign

TextAlign

Defines the position of the unit symbol in its container. The size of the container can be changed with property "unitWidth".

 

 

center

tooltip

String

Defines the text that should appear as information when the tooltip indicator is pressed.

You can use a static text or a text from the text system. For more information, see here.

Mode "Tooltip" must be enabled for this. There are two different options for this:

Using action "ShowTooltip"

Using action "Client system" ShowTooltips.

 

 

 

draggable

Boolean

Defines whether the widget can be dragged at runtime. This can be used to perform actions or establish relationships between two widgets.

If true, the widget can be moved onto another widget. The source widget remains in its position and a copy is created and dragged. Actions OnDragStart and OnDragEnd can be used.

If false, the widget cannot be moved.

For more information, see here.

 

 

false

minWidth

Size

Defines the minimum total width of the widget. This property is applied if width="auto". Value 0 has no effect.

 

 

0

maxWidth

Size

Defines the maximum total width of the widget. This property is applied if width="auto". Value 0 has no effect.

 

 

0

minHeight

Size

Defines the minimum total height of the widget. This property is applied if height="auto". Value 0 has no effect.

 

 

0

maxHeight

Size

Defines the maximum size of the widget. This property is applied if height="auto". Value 0 has no effect.

 

 

0

tabIndex

Integer

Property tabIndex is used to manage the tab order during keyboard operation.

For additional information, see Keyboard operation.

ENTER triggers event Click if tabIndex ≥0.

 

 

-1

Styleable properties

name

type

description

defaultValue

borderWidth

PixelValCollection

Defines the width of the border around the widget.

2px

cornerRadius

PixelValCollection

Defines the corner style of the widget.

0px

backColor

Color

Defines the background color of the widget.

#FFFFFF

backGroundGradient

Gradient

Defines the background color of the widget as a color gradient.

 

borderColor

ColorCollection

Defines the color of the border around the widget.

#555555

borderStyle

BorderStyle

Defines the style of the border around the widget. Borders can be unbroken, dashed or dotted.

solid

rotation

Rotation

Defines the rotation of the widget, e.g. a value of 90 degrees changes the rotation of the widget by 90 degrees clockwise.

0deg

textColor

Color

Defines the color used to display the text.

#000000

textAlign

TextAlign

Defines the orientation of the text.

right

opacity

Opacity

Defines the transparency of the widget. The lower the value, the more transparent the widget.

1

fontName

FontName

Defines the font used for the text shown.

Arial

fontSize

PixelVal

Defines the size of the font used to display the text.

20px

unitFontSize

PixelVal

Defines the font size of the unit.

14px

bold

Boolean

Defines whether the text is shown in bold.

true

italic

Boolean

Defines whether the text is shown in italics.

false

shadow

Shadow

Defines the shadow of the widget.

none

padding

Padding

Defines the spacing between the outer boundary of the widget and its content. For more information, see here.

0 15px 0 15px

margin

Margin

Defines the offset of the external boundary of the widget to the widget's actual set position. For more information, see here.

0px

Topics in this section:

Actions and events