VisualDataTemplate
Description
The VisualDataTemplate is a template block that can bind to a datasource and display that data in a very customizable manner.
Attributes
- CurrentIndex [integer]: If set, defines the index of the filtered string or data element to output through the output connectors. If not set (or out-of-limits), the String output will output the first filtered string and the data output will output all filtered data. This number is zero-based (i.e. the first element retrieved has index zero. Default: not set.
- DataChanged [event]: An event that is fired when the output data has changed.
- Input [data input]: the data input
- LoopItems [boolean]: Whether or not the Details view should loop around the list of available items when arrived at the first or last item.
- Name [string]: The name of the block.
- NextTrigger [trigger input]: When a trigger is attached, when the trigger is fired, the next item of the input data list is displayed. Only relevant in Details viewmode.
- PreviousTrigger [trigger input]: When a trigger is attached, when the trigger is fired, the previous item of the input data list is displayed. Only relevant in Detail viewmode.
- Style [Style]: The style that needs to be applied to the block.
- ViewMode [List|Details|Single]: The mode for the template. In List and Details mode, the input data is treated as a list: all children of the rootnode of the inputdata are interpreted as list items. The List mode will then display the embedded template for each item vertically stacked. The Details mode displays one list item at a time. Which item is displayed, is determined by the CurrentIndex attribute or by using the NextTrigger and PreviousTrigger attribute. The Single viewmode doesn't display a list and interprets the input data as a single item. Default: List.
Output connectors
- Data: The currently viewed Data item is sent to this output.
Remarks
For examples, check the examples from VisualDataImage and VisualDataSeparator.
