<< 点击显示目录 >> 主页 mappView帮助助手 > mapp View帮助信息 > Widgets > System > ContentControl > Actions and events |
The following section describes the possible actions and events for the widget.
Name |
Description |
Arguments |
SetVisible |
Controls the visibility of the widget. |
•value: Boolean Visible if the value is true. Otherwise, invisible. |
LoadContent |
Loads a piece of content into the widget |
•contentId: ContentReference |
UnloadContent |
Unloads the widget. If a piece of content is loaded, the content is deleted or cached depending on the setting for content caching. |
|
Name |
Description |
Result |
GetContentId |
Returns the current "contentId" of the widget. If no piece of content is loaded, the return value is an empty string. The return value is available in variable result. 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. |
•result: String |
Name |
Description |
Arguments |
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" returns the new value of property "visible". |
VisibilityChanged |
Triggered if the widget's visibility changes. |
•visibility: Boolean "visibility" returns the visibility of the widget. |
OnDragEnter |
Triggers when a dragged widget is moved over the target widget. It is important to ensure that no piece of content was loaded initially or unloaded again with UnloadContent. Otherwise, the events are no longer triggered by the piece of content on top of them. |
•widgetId: String "widgetId" contains the ID of the widget that performed the drag operation. •contentId: String "contentId" contains the ID of the piece of content whose widget performed the drag operation. |
OnDragLeave |
Triggers when a dragged widget is dragged away from the target widget. It is important to ensure that no piece of content was loaded initially or unloaded again with UnloadContent. Otherwise, the events are no longer triggered by the piece of content on top of them. |
•widgetId: String "widgetId" contains the ID of the widget that performed the drag operation. •contentId: String "contentId" contains the ID of the piece of content whose widget performed the drag operation. |
OnDrop |
Triggers when a dragged widget is released on the target widget. For the definition of drag-and-drop and an explanation of how these events can be used, see here. It is important to ensure that no piece of content was loaded initially or unloaded again with UnloadContent. Otherwise, the events are no longer triggered by the piece of content on top of them. |
•widgetId: String "widgetId" contains the ID of the widget that performed the drag operation. •contentId: String "contentId" contains the ID of the piece of content whose widget performed the drag operation. |