<core:FragmentDefinition
	xmlns="sap.m"
	xmlns:core="sap.ui.core">
	<Input
		class="sapUiTinyMarginBottom"
		id="purchaseInput"
		textFormatMode="KeyValue"
		submit="handleInputSubmit"
		placeholder="{i18n>EnterProduct}"
		showSuggestion="true"
		autocomplete="false"
		showValueHelp="true"
		change="handleInputChange"
		valueHelpRequest="handleInputValueHelpOpen"
		suggestionItems="{/Purchases}"
		suggestionItemSelected="handleInputSuggestionItemSelected">
		<suggestionItems>
			<core:ListItem
				key="{PurchaseID}"
				text="{SupplierName}"
				additionalText="{PurchaseID}" />
		</suggestionItems>
	</Input>
</core:FragmentDefinition>