Actions and events

<< 点击显示目录 >>

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

Actions and events

The following section describes the possible actions and events for the widget.

Actions

Name

Description

Arguments

ScrollPageDown

This action jumps to the end of the current page and then scrolls down one page at a time.

 

ScrollPageLeft

This action jumps to the left end of the current page and then scrolls left one page at a time.

 

ScrollPageRight

This action jumps to the right end of the current page and then scrolls right one page at a time.

 

ScrollPageUp

This action jumps to the start of the current page and then scrolls up one page at a time.

 

ScrollStepDown

Selects the next entry in the list.

 

ScrollStepLeft

Selects the left entry in the list.

 

ScrollStepRight

Selects the right entry in the list.

 

ScrollStepUp

Selects the previous entry in the list.

 

ScrollToHorizontal

This action scrolls horizontally to a specific column.

value: UInteger

ScrollToVertical

This action scrolls vertically to a specific row.

value: UInteger

SetColumnVisibility

This action controls the visibility of columns.

index: Integer

visible: Boolean

SetRowVisibility

This action controls the visibility of rows.

index: Integer

visible: Boolean

SetVisible

Controls the visibility of the widget.

value: Boolean

true= Visible

false= Invisible

SetEnable

Controls the usability of the widget.

value: Boolean

SetSelectedColumn

This action selects a column.

value: Integer

SetSelectedRow

This action selects a row.

value: Integer

SetStyle

Sets a predefined style for the widget.

value: StyleReference

OpenConfiguration

Opens a dialog box for configuring the filtering.

type: TableConfigurationType

type defines which type of configuration dialog box is opened.

ShowTooltip

Mode "Tooltip" can be enabled using this action. When enabled, a tooltip indicator appears inside the widget. For this, a text must be configured in property "Tooltip". This text is displayed when the indicator is selected. Any other operation of a widget terminates mode "Tooltip".

 

Focus

Sets the focus to the widget when keyboard operation is enabled.

 

Table: Actions

Events

Name

Description

Arguments

Click

Triggered when clicking on the widget.

origin: String

"origin" contains the ID of the widget that triggers the click event.

horizontalPos: String

horizontalPos contains the horizontal position of event "Click" in pixels (e.g. 10px starting from the viewport).

verticalPos: String

verticalPos contains the vertical position of the click event in pixels (e.g. 10px starting from viewport).

DisabledClick

Triggered when clicking on the disabled widget.

origin: String

"origin" contains the ID of the widget that triggers the click event.

hasPermission: Boolean

"hasPermission" defines whether the current user has the necessary rights to access it.

horizontalPos: String

horizontalPos contains the horizontal position of the DisabledClick event in pixels (e.g. 10px starting from viewport).

verticalPos: String

verticalPos contains the vertical position of the DisabledClick event in pixels (e.g. 10px starting from viewport).

EnableChanged

Triggered when the usability of the widget is changed. This can be changed using various options:

1) Using property enable (binding or via widget action SetEnable)

2) Using property permissionOperate

3) Using usability properties (enable, permissionOperate, OPC UA variable) of the surrounding container widget

4) Using a bound OPC UA variable with write permissions that have been changed.

value: Boolean

"value" defines the usability of the widget. If true is returned, the widget can be used; if false, it cannot be used.

ValueChanged

Triggered when the value of property "value" changes.

The event is only triggered if the user changes the value through an interaction and not through a binding or action (setter).

 

VisibleChanged

Triggers when the visibility of the widget is changed. This can be changed using various options:

1) Using property visible (binding or via widget action SetVisible)

2) Using property permissionView

3) Using the visibility properties (visible, permissionView) of the surrounding container widget

value: Boolean

"value" defines the visibility of the widget. If true is returned, the widget is displayed; if false, it is not displayed.

FocusIn

Triggered when a widget gets the focus.

 

FocusOut

Triggered when a widget loses focus.

 

Table: Events