在 XML 视图中对齐标签和文本区域 [英] Allign label and TextArea in XML View

查看:28
本文介绍了在 XML 视图中对齐标签和文本区域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有布局问题.我想将标签和文本区域排列成一个表单.我不喜欢我的输出:

I have a layout problem. I want to allineate the label and the text area into a form. I don't like my output:


我该怎么做?文本区域定义错误?


How can I do it? There is a wrong definition of the text area?

我的观点是这样的,问题出在哪里?

My viwe is this, Where is the problem?

...
        <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>



    ...

推荐答案

set editable="true" 而不是 "false".

这篇关于在 XML 视图中对齐标签和文本区域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆