扩展输入建议宽度的

扩展输入建议宽度的

本文介绍了扩展输入建议宽度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当前宽度截图:

我正在尝试展开上面的建议弹出窗口。

因为我想在FilterBar中使用它,所以输入字段很小,表变得有点没用。当尝试使用检查器更改width时,它会立即变回。

我使用的演示代码相当简单。

<Input xmlns="sap.m"
  showSuggestion="true"
  showTableSuggestionValueHelp="false"
  suggestionRows="{/ZSD_DebiaSet}"
  width="200px">
  <suggestionColumns>
    <Column popinDisplay="Inline" demandPopin="true">
      <Label text="Name"/>
    </Column>
    <Column hAlign="Center" popinDisplay="Inline" demandPopin="true" minScreenWidth="Tablet">
      <Label text="Product ID"/>
    </Column>
    <Column hAlign="Center" popinDisplay="Inline" minScreenWidth="Tablet">
      <Label text="Supplier Name"/>
    </Column>
    <Column hAlign="End" popinDisplay="Inline" demandPopin="true">
      <Label text="Price"/>
    </Column>
  </suggestionColumns>
  <suggestionRows>
    <ColumnListItem>
      <!-- ... -->
    </ColumnListItem>
  </suggestionRows>
</Input>

推荐答案

sap.m.Input(即包括sap.m.MultiInput)扩展的控件有一个名为maxSuggestionWidth的属性,该属性允许您拥有比输入的实际宽度更宽的建议表。检查此处的属性:https://openui5.hana.ondemand.com/api/sap.m.Input#methods/setMaxSuggestionWidth

我添加了该属性的值500px(仅用于测试),结果如下(Input宽度为200px):

我想这就是您要找的^^希望它能帮上忙!

这篇关于扩展输入建议宽度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-12 04:13