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

SelectButton: add custom style to each button option #3485

Closed
pierfreeman opened this issue Jul 22, 2017 · 2 comments
Closed

SelectButton: add custom style to each button option #3485

pierfreeman opened this issue Jul 22, 2017 · 2 comments
Assignees
Labels
Type: New Feature Issue contains a new feature or new component request
Milestone

Comments

@pierfreeman
Copy link

I'd like to have a different color for each button in SelectButton. Is there a way to define a style scoped only to the specific option, for example like using ng-template?

@cagataycivici
Copy link
Member

No but we can add styleclass to selectitem api to do it.

@cagataycivici cagataycivici added the Type: New Feature Issue contains a new feature or new component request label Aug 23, 2017
@cagataycivici cagataycivici added this to the 4.2 milestone Aug 23, 2017
@cagataycivici cagataycivici self-assigned this Sep 12, 2017
@kirillzhk
Copy link

@cagataycivici
I need to color all buttons depends on value inside the button.
Could you please advise how to use styleclass for SelectButton? I have tried different options, but i can't add any custom class of something like that. Might you have some example for it?
image

button 40 - i need to have green
button 41 - i need to have red
button 42 - i need to have blue
button 43 - i need to have green
... ect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: New Feature Issue contains a new feature or new component request
Projects
None yet
Development

No branches or pull requests

3 participants