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

Add dynamic option value #33

Open
mizancsebuet opened this issue Oct 4, 2018 · 2 comments
Open

Add dynamic option value #33

mizancsebuet opened this issue Oct 4, 2018 · 2 comments
Labels

Comments

@mizancsebuet
Copy link

I am unable to add values using the following code:

let dualListbox = new DualListbox('#select');

// Access the buttons:
dualListbox.add_button.setAttribute('a', 'a');
dualListbox.add_all_button.setAttribute('a', 'a');
dualListbox.remove_button.setAttribute('a', 'a');
dualListbox.remove_all_button.setAttribute('a', 'a');

// Access the search field:
dualListbox.search.classList.add('some_class');

// Access the list containers:
dualListbox.selectedList.setAttribute('a', 'a');
dualListbox.availableList.setAttribute('a', 'a');

@JostCrow
Copy link
Collaborator

This will need to be investigated. Is there an error that in the console?

@JostCrow JostCrow added the bug label Nov 13, 2018
@canerksk
Copy link

canerksk commented Jan 16, 2024

It regularly gives errors to the class.

Correct usage eg;

duallistbox.add_button.classList.add("btn-primary");

wrong use;
duallistbox.add_button.classList.add("btn btn-primary");

If added like this it becomes

            duallistbox.add_button.classList.add("btn");
            duallistbox.add_button.classList.add("btn-primary");

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