You are here:
MediaList Control
The MediaListControl UI element defines a media control for including attachments in the application. You can include attachments such as video, images, or documents in the offline mobile app so that end users can review them. This UI element scales images or thumbnails and videos automatically to fit on the page, even if the orientation changes.
Required Editions
| Available in: Enterprise, Performance, and Unlimited Editions |
The table lists the MediaListControl attributes.
| Attribute | Description | Value or Pattern | Required? | Validation |
|---|---|---|---|---|
| name | Identifier of control | string | yes | uniqueness (contract) |
| disabled | Specifies if the MediaControl UI element is enabled or disabled. | boolean | no |
The CalendarControl element can contain these child nodes
- Bindings
- Items
- Events
MediaListControl Bindings
The Bindings element consists of the Resource and Binding elements. The table lists the targets that are supported for the Resource and Binding elements in the MediaListControl element.
| Attribute | Description | Value or Pattern |
|---|---|---|
| target | Defines the path of the Media list control. | string |
| type | Defines how the resource is shown. | string |
| binding | Source of the binding. | string |
| bindingMode | Binding mode is used to control the updating process. | string [One Way] |
MediaListControl Items
The MediaListControl Items contain a context menu child node. The context menu child node provides contextual actions to the user. The type and number of actions depend on the data context, the application state, and the control the menu is attached to. The data and resource bindings are available for context menus.
| Attribute | Description | Value or Pattern | Required? |
|---|---|---|---|
| ItemValue | The value attribute of the data and value is passed to the selection event | Data | Yes |
| ItemText | The text attribute of the data. that appears in the UI. | Data | Yes |
MediaListControl Events
The MediaListControl Events consist of event elements that can be used in the Calendar control element.
| Event Name | Fired when | Required? |
|---|---|---|
| ContextOpeningEvent | An application user opens a context menu. | No |
| ContextSelectedEvent | An application user selects a context menu option. | No |
Sample XML code
<MediaListControl name="MediaListCtrl" disabled="false" dataSource="dataSource">
<Bindings>
<Binding target="MediaPath" type="Text" binding="mediaPathBinding" bindingMode="ONE_WAY" />
<Binding target="Description" type="Text" binding="descriptionBinding" bindingMode="ONE_WAY" />
<Binding target="Type" type="Text" binding="typeBinding" bindingMode="ONE_WAY" />
</Bindings>
</MediaListControl>
