Xml SAPUI5区块布局表

Xml SAPUI5区块布局表,xml,sapui5,Xml,Sapui5,我想在SAPUI5中使用块布局创建表单,但我有一个问题,我想在上面的组合框中显示标签文本和带有标签的组合框,但我不能。我想定位组合框和标签,就像标签和输入字段一样(标签下面的输入)。但是组合框就放在标签旁边。如何解决此问题 代码: 您可以简单地将标签和组合框放置在垂直布局中。这将使组合框位于标签下方 <Panel> <content> <l:VerticalLayout id="containerLayout" width

我想在SAPUI5中使用块布局创建表单,但我有一个问题,我想在上面的组合框中显示标签文本和带有标签的组合框,但我不能。我想定位组合框和标签,就像标签和输入字段一样(标签下面的输入)。但是组合框就放在标签旁边。如何解决此问题

代码:



您可以简单地将标签和组合框放置在垂直布局中。这将使组合框位于标签下方

<Panel>
        <content>
            <l:VerticalLayout id="containerLayout" width="100%">
                <l:BlockLayout id="BlockLayout" background="{/selectedBackground}">
                    <l:BlockLayoutRow accentCells="Accent0">
                        <l:BlockLayoutCell width="3">
                            <l:VerticalLayout>
                                <Text text="Alamat" />
                                <ComboBox />
                            </l:VerticalLayout> 
                        </l:BlockLayoutCell>
                    </l:BlockLayoutRow>
...
...
</Panel>

...
...

您可以简单地将标签和组合框放置在垂直布局中。这将使组合框位于标签下方

<Panel>
        <content>
            <l:VerticalLayout id="containerLayout" width="100%">
                <l:BlockLayout id="BlockLayout" background="{/selectedBackground}">
                    <l:BlockLayoutRow accentCells="Accent0">
                        <l:BlockLayoutCell width="3">
                            <l:VerticalLayout>
                                <Text text="Alamat" />
                                <ComboBox />
                            </l:VerticalLayout> 
                        </l:BlockLayoutCell>
                    </l:BlockLayoutRow>
...
...
</Panel>

...
...