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

Callback after selecting option #87

Open
MrMooky opened this issue Aug 1, 2024 · 0 comments
Open

Callback after selecting option #87

MrMooky opened this issue Aug 1, 2024 · 0 comments

Comments

@MrMooky
Copy link

MrMooky commented Aug 1, 2024

I read the docs and also some issues, but I was not able to find any way to trigger a callback after selecting an option. Is there no option, or have I somehow missed that?

I was thinking of something like that:

var options = {searchable: true};

var select = NiceSelect.bind(document.getElementById("countryselect"), options, function(value) {
    @this.set('fields.country', value);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant