<mvc:View
	controllerName="sap.f.cardsdemo.controller.Parameters"
	xmlns="sap.m"
	xmlns:mvc="sap.ui.core.mvc"
	xmlns:f="sap.f"
	xmlns:w="sap.ui.integration.widgets"
	displayBlock="true">
	<Page title="{i18n>appTitle}">
		<subHeader>
			<Toolbar>
				<ToolbarSpacer/>
				<Title text="List Card" />
				<ToolbarSpacer/>
			</Toolbar>
		</subHeader>

		<SegmentedButton
			selectedKey="cozy"
			selectionChange=".onFormFactorChange"
			class="VizTestDensityBtn sapUiSmallMargin">
			<items>
				<SegmentedButtonItem text="Cozy" key="cozy" />
				<SegmentedButtonItem text="Compact" key="compact" />
			</items>
		</SegmentedButton>

		<Button
			text="Get Walldorf Weather"
			press=".onChangeCity"
			class="sapUiSmallMargin">
			<layoutData>
				<f:GridContainerItemLayoutData columns="2" />
			</layoutData>
		</Button>

		<f:GridContainer class="sapUiSmallMargin">
			<w:Card id="weatherCard" baseUrl="{cardsPlayground>/playgroundBaseUrl}" manifest="{manifests>/paramsInRequest}" parameters="{params>/weather}">
				<w:layoutData>
					<f:GridContainerItemLayoutData columns="3" />
				</w:layoutData>
			</w:Card>
			<w:Card id="manifestOnly" baseUrl="{cardsPlayground>/playgroundBaseUrl}" manifest="{manifests>/paramsInManifestOnly}">
				<w:layoutData>
					<f:GridContainerItemLayoutData columns="3" />
				</w:layoutData>
			</w:Card>
			<w:Card id="listCard" baseUrl="{cardsPlayground>/playgroundBaseUrl}" manifest="{manifests>/paramsListCard}" parameters="{params>/location}">
				<w:layoutData>
					<f:GridContainerItemLayoutData columns="3" />
				</w:layoutData>
			</w:Card>
			<w:Card id="defaultFromManifest" baseUrl="{cardsPlayground>/playgroundBaseUrl}" manifest="{manifests>/paramsDefaultParamFromManifest}" parameters="{params>/locationCity}">
				<w:layoutData>
					<f:GridContainerItemLayoutData columns="4" />
				</w:layoutData>
			</w:Card>
			<w:Card id="defaultFromManifestEdited" baseUrl="{cardsPlayground>/playgroundBaseUrl}" manifest="{manifests>/paramsDefaultParamFromManifestEdited}" parameters="{params>/locationOverwrite}">
				<w:layoutData>
					<f:GridContainerItemLayoutData columns="4" />
				</w:layoutData>
			</w:Card>
		</f:GridContainer>
	</Page>
</mvc:View>