<mvc:View
	controllerName="sap.m.sample.InputKeyValue.C"
	xmlns:mvc="sap.ui.core.mvc"
	xmlns="sap.m"
	xmlns:core="sap.ui.core"
	xmlns:l="sap.ui.layout">
	<l:VerticalLayout class="sapUiContentPadding" width="100%">
		<Label text="Product" labelFor="productInput" />
		<Input
			id="productInput"
			textFormatMode="KeyValue"
			placeholder="Enter product"
			showSuggestion="true"
			showValueHelp="true"
			valueHelpRequest=".onValueHelpRequest"
			suggestionItems="{/ProductCollection}"
			suggestionItemSelected=".onSuggestionItemSelected">
			<suggestionItems>
				<core:ListItem
					key="{ProductId}"
					text="{Name}"
					additionalText="{ProductId}" />
			</suggestionItems>
		</Input>

		<Label text="Selected Key" labelFor="selectedKey" />
		<Text id="selectedKeyIndicator" />
	</l:VerticalLayout>
</mvc:View>