Actions and events

<< 点击显示目录 >>

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

Actions and events

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

Actions

Name

Description

Arguments

SetVisible

Controls the visibility of the widget.

value: Boolean

SetColumnWidth

This action can individually overwrite property "columnWidth" of widget "Table" if the value is other than 0. The "TableItemImageList" must be a column for this.

value: UInteger

SetEnable

Controls the usability of the widget.

value: Boolean

SetImageList

With the help of this action, images that can be placed on the widget can be defined.

imageList: GraphicCollection

SetSelectedIndex

Defines the images that are displayed in the table.

For information about how to use the widget action, see Method arguments.

selectedIndex: NumberArray1D

SetRowHeight

This action can individually overwrite property "rowHeight" of widget "Table" if the value is other than 0. The "TableItemImageList" must be defined as a row for this.

value: UInteger

SetText

Adds a text to the widget.

Text keys from the text system (e.g. "$IAT/TextID") or texts put together as a string using operands (e.g. "=myStringOperand") can be used. This text is used as the heading for the row/column.

value: String

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.

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.

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.

SelectedImageIndexChanged

Triggered when the value of property "selectedImageIndex" changes.

imageIndex: Integer

"imageIndex" returns the new value of property "selectedImageIndex".

Table: Events