summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/visual/repeater/basic2/basic2.xml
blob: b16fbfe07e57db163842e813209c90ccf2f1dfe1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<Rect color="blue" width="800" height="600" id="Page">
    <Component id="Delegate">
        <Rect color="red" width="100" height="100">
            <Text text="{name}" />
        </Rect>
    </Component>

    <HorizontalLayout>
        <Repeater component="{Delegate}">
            <dataSource>
                <ListModel>
                    <Month>
                        <name>January</name>
                    </Month>
                    <Month>
                        <name>February</name>
                    </Month>
                </ListModel>
            </dataSource>
        </Repeater>
    </HorizontalLayout>
</Rect>