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

multi-select gets values of options and show them #21

Open
saramansouri opened this issue Mar 6, 2023 · 1 comment
Open

multi-select gets values of options and show them #21

saramansouri opened this issue Mar 6, 2023 · 1 comment
Labels

Comments

@saramansouri
Copy link

I want this multi-select to get an array of values and show the options but it doesn't work even for showing one option.
Could you please help me with this?
thanks in advanced

@wolffe
Copy link
Owner

wolffe commented Mar 6, 2023

If this is PHP, you first need to build the <select> element, and then call tail.select() on it.

If this is JavaScript, it's the same, you need to build all options from an array and then call tail.select(). If the array is coming from an external URL, you might need to use an await function, or a Promise. Otherwise, just make sure the <select> element exists before calling tail.select().

@wolffe wolffe added the 0.5 label Dec 13, 2023
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

2 participants