<mvc:View
	controllerName="sap.m.sample.PlanningCalendarOneLine.Page"
	xmlns:core="sap.ui.core"
	xmlns:mvc="sap.ui.core.mvc"
	xmlns:unified="sap.ui.unified"
	xmlns="sap.m">
	<VBox class="sapUiSmallMargin">
		<PlanningCalendar
			id="PC1"
			stickyHeader="true"
			showIntervalHeaders="true"
			showEmptyIntervalHeaders="false"
			appointmentsReducedHeight="true"
			startDate="{path: '/startDate'}"
			rows="{path: '/people'}"
			appointmentsVisualization="Filled"
			appointmentSelect="handleAppointmentSelect"
			intervalSelect="handleIntervalSelect">
			<toolbarContent>
				<Title text="Title" titleStyle="H4"/>
				<ToggleButton
					id="MultiSelect"
					icon="sap-icon://multi-select"
					tooltip="Enable multiple appointments selection"
					press=".onPress">
					<layoutData>
						<OverflowToolbarLayoutData priority="NeverOverflow"/>
					</layoutData>
					<customData>
						<BadgeCustomData key="badge"/>
					</customData>
				</ToggleButton>
				<Select
						change="handleSortChange"
						width="230px">
					<items>
						<core:Item key="default" text="Default Appointments Sort" />
						<core:Item key="custom" text="Alphabetical Appointments Sort" />
					</items>
				</Select>
			</toolbarContent>
			<rows>
				<PlanningCalendarRow
					icon="{pic}"
					title="{name}"
					text="{role}"
					appointments="{path : 'appointments', templateShareable: false}"
					intervalHeaders="{path: 'headers', templateShareable: false}">
					<appointments>
						<unified:CalendarAppointment
							startDate="{start}"
							endDate="{end}"
							icon="{pic}"
							title="{title}"
							text="{info}"
							type="{type}"
							tentative="{tentative}">
						</unified:CalendarAppointment>
					</appointments>
					<intervalHeaders>
						<unified:CalendarAppointment
							startDate="{start}"
							endDate="{end}"
							icon="{pic}"
							title="{title}"
							type="{type}">
						</unified:CalendarAppointment>
					</intervalHeaders>
				</PlanningCalendarRow>
			</rows>
		</PlanningCalendar>
	</VBox>
</mvc:View>