-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Dropdown: Allow to pass "className" with a group as well #5047
Comments
Isn't that just this: https://codesandbox.io/s/primereact-dropdown-panel-width-forked-zc2kw3 pt={{
itemGroup: ({ context }) => ({
className: "bg-primary"
})
}} |
Sounds like that, but I would like to pass className in relation to specific item on same way as I'm doing when not using groups. So I need to pass it in the options structure. |
Got it i think it just needs the extra data passed to it! |
@dominikj111 please review my PR. Now it adds the optionGroupLabel to the context as well as adds the style |
Describe the feature you would like to see added
I need to pass a specific className with the options group along with the "p-dropdown-item-group" class.
It is possible to do this with an item only.
https://codesandbox.io/s/primereact-dropdown-panel-width-yp9v59?file=/src/App.js
Is your feature request related to a problem?
I have first group without the label what causes to render additional white space on the start of the list of options.
Describe the solution you'd like
No response
Describe alternatives you have considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: