Sapui5 如何缩进按钮?

Sapui5 如何缩进按钮?,sapui5,Sapui5,我有以下SAPUI5应用程序: [Codepen](https://codepen.io/bifunctor/project/editor/XaOapY#) 我想将查询按钮缩进相同的输入 如何做到这一点 这是一种黑客行为。只需将空标签关联添加到 按钮 您可以使用GridData的缩进属性。 试试这个: <Label text="Payers"></Label> <Input id="payerFrom" showSuggestion="true" placehol

我有以下SAPUI5应用程序:

[Codepen](https://codepen.io/bifunctor/project/editor/XaOapY#)
我想将查询按钮缩进相同的输入

如何做到这一点

这是一种黑客行为。只需将空标签关联添加到 按钮


您可以使用GridData的缩进属性。 试试这个:

<Label text="Payers"></Label>
<Input id="payerFrom" showSuggestion="true" placeholder="From"
   required="true">
</Input>
<Input id="payerTo" showSuggestion="true" placeholder="To"
   required="true">
</Input>
<Button text="Query" type="Emphasized" press="queryData">
   <layoutData>
      <layout:GridData span="XL6 L6 M6 S12" indent="L1 M1 S0"/>
   </layoutData>
</Button>

付款人:从到”是什么意思?“查询”按钮是否在语义上与“付款人”关联?问什么?那个按钮的作用是什么?我只是确保我们没有尝试。另外,请不要滥用代码格式来绕过堆栈溢出的警告“指向codepen.io的链接必须附带代码”
<Label text="Payers"></Label>
<Input id="payerFrom" showSuggestion="true" placeholder="From"
   required="true">
</Input>
<Input id="payerTo" showSuggestion="true" placeholder="To"
   required="true">
</Input>
<Button text="Query" type="Emphasized" press="queryData">
   <layoutData>
      <layout:GridData span="XL6 L6 M6 S12" indent="L1 M1 S0"/>
   </layoutData>
</Button>