PeterStaev / NativeScript-Drop-Down

A NativeScript DropDown widget.
Apache License 2.0
105 stars 65 forks source link

How can I get a dropdown menu button displayed? #66

Closed shivapersad closed 7 years ago

shivapersad commented 7 years ago

As my topic says I am looking to display an arrow at the end of my Dropdown? Is this possible? I am attempting to do it with CSS. It should look something like the attached.

drop_down_example
PeterStaev commented 7 years ago

Hey @shivapersad , the drop down on iOS does not show an arrow so it matches native controls. You can achieve what you want by greating a GridLayout with two columns - one is * and will contain the drop down and the second one is as much as the arrow image. Then you should wire the tap event of the image to call the open() method of the drop down. Hope this helps!

shivapersad commented 7 years ago

Hi @PeterStaev, I'll give it a shot. Thanks.