Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Styling the button that creates the drop-down #19

Closed
hchor opened this issue Jul 5, 2016 · 5 comments
Closed

Styling the button that creates the drop-down #19

hchor opened this issue Jul 5, 2016 · 5 comments
Labels

Comments

@hchor
Copy link

hchor commented Jul 5, 2016

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
Copy link
Owner

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
Copy link

Mcdeep commented Jul 5, 2016

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
Copy link
Owner

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

@ghost
Copy link

ghost commented Jul 7, 2016

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

@PeterStaev
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants