Actions and events

<< 点击显示目录 >>

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

Actions and events

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

Actions

Name

Description

Arguments

SetSelectedValue

Changes the selected element using its content ID.

selectedValue: ContentReference

Specifies the piece of content ID.

SetVisible

Controls the visibility of the widget.

value: Boolean

Visible if the value is true. Otherwise, invisible.

Focus

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

 

Table: Actions

Reading actions

To obtain the result of a reading action, an "operand" must be used. For more information, see here. For how the result can be used in the ResultHandler, see here.

Name

Description

Result

GetSelectedValue

This action returns the content ID of the currently selected elements.

result: String

Table: Reading actions

Events

Name

Description

Arguments

SelectedValueChanged

Triggered when selectedValue (selected content) changes.

newValue: ContentReference

Specifies the newly loaded piece of content.

oldValue: ContentReference

Specifies the piece of content that was previously displayed.

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