Password

<< 点击显示目录 >>

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

Password

Widget "Password" allows a password to be entered. Characters are masked when entered.

This widget should only be used if the HMI application is output via "https" (TLS); otherwise, the integrity of the data is not ensured.

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

zIndex, left, top, height, width

Appearance

password_editor

password_runtime

Editor

Web browser

Properties

Name

Type

Description

Bindable

Necessary

Default value

ellipsis

Boolean

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

For more information, see here.

 

 

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 "disabled..." style is displayed at runtime. The "enable" behavior is inherited from the container widgets to the child widgets.

check

 

true

keyboard

Boolean

Defines whether an on-screen keyboard is used for entries. If keyboard=true, an on-screen keyboard is used and opens automatically as soon as input is required in the widget. If keyboard=false, it must be ensured that a hardware keyboard is available.

 

 

true

maxLength

Integer

Defines the maximum number of characters that can be entered.

If maxLength < 0, there is no limitation.

 

 

-1

inputRestriction

RegEx

Defines a regular expression used to check the widget's input value. The widget accepts all input that matches the regular expression.

 

 

 

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.

 

 

 

style

StyleReference

Reference to a customizable widget style.

check

 

default

placeholder

String

Defines a message text that is displayed until the actual input takes place.

 

 

 

submitOnChange

Boolean

Defines whether changes, such as entry of a different value, should be submitted to the server immediately. Submit immediately = true.

A change is applied when input is confirmed with "Enter" or the widget loses the focus.

 

 

true

value

String

Defines the value (password) entered in the widget.

check

 

 

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

Size

Defines the total height of the widget in pixels.

A value in % refers to the height of the surrounding element.

 

 

30

width

Size

Defines the total width of the widget in pixels.

A value in % refers to the width of the surrounding element.

 

 

100

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

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. According to the OnStart configuration in the HMI application, a password can be entered and applied accordingly with OnEnd.

 

 

0

Styleable properties

Name

Type

Description

Default value

borderWidth

PixelValCollection

Defines the width of the border around the widget.

2px

disabledBorderWidth

PixelValCollection

Defines the width of the border around the widget in the disabled state.

2px

cornerRadius

PixelValCollection

Defines the corner style of the widget.

0px

backColor

Color

Defines the background color of the widget.

#FFFFFF

disabledBackColor

Color

Defines the background color of the widget in the disabled state.

#F1F1F1

backGroundGradient

Gradient

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

 

disabledBackGroundGradient

Gradient

Defines the background color of the widget as a color gradient in the disabled state.

 

borderColor

ColorCollection

Defines the color of the border around the widget.

#999999

disabledBorderColor

ColorCollection

Defines the color of the border around the widget in the disabled state.

#C8C8C8

borderStyle

BorderStyle

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

solid

textColor

Color

Defines the color used to display the text.

#000000

disabledTextColor

Color

Defines the color of the text in the disabled state.

#C8C8C8

activeBorderColor

ColorCollection

Defines the color of the border around the widget during operation.

#FF8800

activeBorderWidth

PixelValCollection

Defines the width of border around the widget during active operation.

2px

activeBackColor

Color

Defines the background color of a widget during operation.

#F7F7FF

activeTextColor

Color

Defines the color used to display the text during operation.

#333333

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

bold

Boolean

Defines whether the text is shown in bold.

true

italic

Boolean

Defines whether the text is shown in italics.

false

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

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

placeholderTextColor

Color

Defines the color of the message text.

#C8C8C8

Topics in this section:

Actions and events