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