Skip to content

List Item Data Source

This data source provides a static list of values.

The items for this data source are defined within the <Items> element. Each individual item is encapsulated within an <Item> element, which contains the properties of that item.

Every item has associated elements that define its properties. By default, Emakin utilizes the Text and Value elements to specify the item's display text and underlying value, respectively. However, you can include additional elements within each <Item> to incorporate supplementary properties.

Example Data Source

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
<ListItemDataSource TextFormat="{{Text}}" ValueFormat="{{Value}}" Enabled="True">
    <Items>
        <Item>
            <Text Type="System.String"><![CDATA[Option 1]]></Text>
            <Value Type="System.String"><![CDATA[Option1]]></Value>
        </Item>
        <Item>
            <Text Type="System.String"><![CDATA[Option 2]]></Text>
            <Value Type="System.String"><![CDATA[Option2]]></Value>
        </Item>
        <Item>
            <Text Type="System.String"><![CDATA[Option 0]]></Text>
            <Value Type="System.String"><![CDATA[0]]></Value>
        </Item>
        <Item>
            <Text Type="System.String"><![CDATA[0]]></Text>
            <Value Type="System.String"><![CDATA[Option0]]></Value>
        </Item>
    </Items>
</ListItemDataSource>