jakezatecky / react-dual-listbox

A feature-rich dual listbox for React.
https://jakezatecky.github.io/react-dual-listbox/
MIT License
110 stars 58 forks source link

Disable only the multi selection buttons (>> and <<) #144

Closed virajdesaiofficial closed 3 years ago

virajdesaiofficial commented 3 years ago

Please include a clear and concise description of the feature or enhancement you would like to have added to the project. I want to remove the buttons for selecting and deselecting multiple buttons (<< and >>). I tried searching for the props which would enable me to do this, but it looks like there aren't any. Is there a way to only have single select (>) and single deselect (<) buttons in the dual-listbox component? Or can we disable only the multiple select/deselect buttons (<< and >>)?

sagar-ranglani commented 3 years ago

This would be useful when we do NOT want the user to "De-select" a preselected (and disabled) option.

jakezatecky commented 3 years ago

You can hide the buttons through CSS rather easily, but there is no official way to do this with the component properties.

This relates to #108, which is a potential future feature to add to the component.

virajdesaiofficial commented 3 years ago

Thank you Jake...