maykinmedia / dual-listbox

A simple dual listbox build in plain Javascript and some simple styling. (no other libraries of frameworks required)

Home Page:https://maykinmedia.github.io/dual-listbox/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Disable or remove a button?

fdesvallees opened this issue · comments

Hello, this works very well. Is it possible to disable the "add all" button, or remove it completely?
thanks
François

For now the option is not there. But this is a good enhancement.

Also feel free to make a pull request.

Quick fix: To remove a button, all you need to do is set the button's css property to display:none.
Example using jQuery:
$('.dual-listbox__button:nth-child(2)').hide()

CSS Style Sheet:
<style> .dual-listbox__button: nth-child(2) { display:none; } </style>

dualListbox.add_all_button.remove()