summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/visual/repeater/basic4/basic4.xml
blob: 53b8ff9b54fc0b349bb0bce28caf9879854f03bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<Rect color="blue" width="800" height="600" id="Page">
    <ListModel id="DataSource">
        <Month>
            <name>January</name>
        </Month>
        <Month>
            <name>February</name>
        </Month>
    </ListModel>
    <Component id="Delegate">
        <Rect color="red" width="100" height="100">
            <Text text="{name}" />
        </Rect>
    </Component>
    <HorizontalLayout>
        <Repeater dataSource="{DataSource}" component="{Delegate}" />
    </HorizontalLayout>
</Rect>