PeterStaev / NativeScript-Drop-Down

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

Styling the button that creates the drop-down #19

Closed hchor closed 8 years ago

hchor commented 8 years ago

How do I style the button that creates the drop-down? Or even use a StackLayout or something else that initiates the drop-down?

PeterStaev commented 8 years ago

Hey @hchor , you cannot directly style the android indicator (it is not a button, since the drop down will open wherever you press inside the drop down). If you want you can add a normal button next to the drop down, style it to whatever fits your design, and then handle the tap event of the button and use the open() method of the drop down to open the popup. Hope this helps.

Mcdeep commented 8 years ago

Hi all... I just cannot figure out to manage to style the List Items. They all appear squashed. Can you highlight on how to add styles to them. Thanks

PeterStaev commented 8 years ago

Hey @Mcdeep, just add padding style to the drop down. For reference you can look at the sample app in this repo.

ghost commented 8 years ago

Hey is there method to be called upon opening popup and on selection(Closing) in nativescript ?

PeterStaev commented 8 years ago

Hey @hvadotnarola , currently this is not possible. Added an enhancement for a future release. Thanks for your suggestion!