我有布局问题。我想将标签和文本区域整理成一个表单。我不喜欢我的输出:
我该怎么做?
文本区域的定义是错误的吗?
我的viwe是这个, 问题在哪里?
...
<content>
<l:Grid
defaultSpan="L12 M12 S12"
hSpacing="2"
width="auto">
<l:content>
<f:Form id="FormNewNomDog"
minWidth="1024"
maxContainerCols="2"
editable="false"
class="isReadonly">
<f:layout>
<f:ResponsiveGridLayout
labelSpanL="3"
labelSpanM="3"
emptySpanL="4"
emptySpanM="4"
columnsL="1"
columnsM="1" />
</f:layout>
<f:formContainers>
<f:FormContainer>
<f:formElements>
<f:FormElement label="Codice nome doganale">
<f:fields>
<TextArea xmlns="sap.m"
id="idCodNomDog"
value=""
width=""
enabled="true"
valueState="None"
rows="1"
change=""
liveChange="onChangeFormElement">
</TextArea>
</f:fields>
</f:FormElement>
<f:FormElement label="Bene o Servizio">
<f:fields>
<Switch state="false" customTextOn="Bene" customTextOff="Serv" id="idBenSer">
<layoutData>
<FlexItemData growFactor="1" />
</layoutData>
</Switch>
</f:fields>
</f:FormElement>
<f:FormElement label="Presenza unita' supplementare">
<f:fields>
<Switch state="false" id="idPresUnSuppl" change="onChangePresUnSuppl">
<layoutData>
<FlexItemData growFactor="1" />
</layoutData>
</Switch>
</f:fields>
</f:FormElement>
<f:FormElement label="Descrizione unita' supplementare">
<f:fields>
<TextArea xmlns="sap.m"
id="idDescUnSuppl"
value=""
width=""
enabled="false"
valueState="None"
rows="1"
change=""
liveChange="onChangeFormElement">
</TextArea>
</f:fields>
</f:FormElement>
</f:formElements>
</f:FormContainer>
</f:formContainers>
</f:Form>
</l:content>
</l:Grid>
</content>
...
答案 0 :(得分:1)
设置editable="true"
而不是"false"
。