SAPUI5 Simple Form 表单示例

效果:
在这里插入图片描述
Form.xml.view

<mvc:View controllerName="ZDEMO_TEST.controller.Form" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:mvc="sap.ui.core.mvc"
	xmlns:core="sap.ui.core" xmlns:f="sap.ui.layout.form" displayBlock="true" xmlns="sap.m">
	<Page title="{i18n>pageTitle}">
		<content>
			<Panel headerText="{i18n>panelHeader}" expandable="true" expanded="true" width="auto">
				<f:SimpleForm id="idForm" editable="true" layout="ResponsiveGridLayout" labelSpanXL="3" labelSpanL="3" labelSpanM="3" labelSpanS="12"
					adjustLabelSpan="false" emptySpanXL="0" emptySpanL="0" emptySpanM="0" emptySpanS="0" columnsXL="3" columnsL="3" columnsM="2"
					singleContainerFullSize="false">
					<core:Title text=""/>
					<Label id="idOrder" text="Order"/>
					<Input id="idOrderIn" textAlign="Left" value="OrderIn"/>
					<Label id="idMaterial" text="Material"/>
					<Input id="idMaterialIn" textAlign="Left" value="MaterialIn"/>
					<core:Title text=""/>
					<Label id="idCompanyCode" text="CpnCode"/>
					<Input id="idCompanyCodeIn" textAlign="Left" value="CpnCodeIn"/>
					<Label id="idBtnLab" text=""/>
					<Button id="idBtn" text="Search" press="onSearch" type="Emphasized" width="5rem"/>
					<core:Title text=""/>
					<Label id="idCreateDate" text="CreateData"/>
					<DatePicker id="idCreateDateIn"
						value="{path: 'Head>/createDate', formatOptions:{ strictParsing: true, pattern: 'yyyy年MM月dd日', style: 'short', source: {pattern: 'yyyy-MM-dd'}}}"
						valueFormat="yyyy-MM-dd" displayFormat="long" change="onDateStartChange"/>
				</f:SimpleForm>
			</Panel>
		</content>
	</Page>
</mvc:View>
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值