Skip to Content
0
Mar 17, 2017 at 09:49 AM

UI5 filter bar can not change width

1424 Views Last edit Mar 21, 2017 at 08:53 AM 4 rev

Hi experts,

I use a filter item in my UI5 app, but the field length is not long enough that the field can't display text completely.

I am trying to change the width of sap.ui.comp.filterbar.FilterItem, but obviously, the API method like "setWidth()" or something to set it.

Could any one suggest how to change the width?

Here is my layout view code.

<fb:FilterBar reset="onReset" search="onSearch" showRestoreButton="true" showClearButton="true" header="{i18n>labelfbHeader}">

<fb:filterItems>

<fb:FilterItem name="issueDate" label="{i18n>labelfbIssueDate}" mandatory="true">

<fb:control>

<DateRangeSelection id="idIssueDate" displayFormat="yyyy/MM/dd" change="onChangeIssueDate"/>

</fb:control>

</fb:FilterItem>

<fb:FilterItem name="regulation" label="{i18n>labelfbRegulation}">

</fb:FilterItem> </fb:filterItems> </fb:FilterBar>

Attachments

fielter-item.png (10.4 kB)