on 01-25-2017 11:58 AM
How to get a (Edit: vertical) scrollbar in a `sap.m.Select`?
I have a popover, in which I have a dropdown menu ('Select').
The popover has a specific height (15rem), which the dropdown menu shouldn't exceed.
I ideally would like to have a scrollbar dynamically added to the sap.m.select, when it has more than 5 options to select from. How can I achieve this, since there is no such property in the docu.
Hi Jakob,
You can include the dropdown control inside a scroll bar. Set the scroll bar type less than your pop over height and type of scrolling to vertical. Try searching for sap.m.scrollbar in sdk.
Regards,
Gowrinath
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jakob ,
Can you try using maxWidth property of sap.m.select. By default its value is 100%, just reduce it and check that horizontal scroll bar is coming or not.
thanks
Viplove
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As sap.m lib is reponsive , so vertical scrollbar comes with container height(in which drop down is placed) and that is automatic. There is nothing like it should come after 5 values of the dropdown
thanks
Viplove
User | Count |
---|---|
78 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.