<mvc:View
	controllerName="sap.m.sample.TreeExpandTo.Page"
	xmlns:l="sap.ui.layout"
	xmlns:core="sap.ui.core"
	xmlns:mvc="sap.ui.core.mvc"
	xmlns="sap.m">
	<OverflowToolbar>
		<content>
			<Text text="Initially expand to Level1"/>
			<ToolbarSpacer/>
			<Text text="Expand to level "/>
			<Select
				selectedKey="1"
				change="handleSelectChange">
				<items>
					<core:Item key="0" text="0" />
					<core:Item key="1" text="1" />
					<core:Item key="2" text="2" />
					<core:Item key="3" text="3" />
					<core:Item key="4" text="4" />
				</items>
			</Select>
			<Button id="collapseAll" text="collapse all nodes" press="onCollapseAllPress"/>
		</content>
	</OverflowToolbar>

	<Tree
		id="Tree"
		items="{path: '/'}">
		<StandardTreeItem title="{text}"/>
	</Tree>
</mvc:View>