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

Select with suggest data from backend #816

Open
applibs opened this issue Jan 28, 2024 · 1 comment
Open

Select with suggest data from backend #816

applibs opened this issue Jan 28, 2024 · 1 comment
Assignees

Comments

@applibs
Copy link

applibs commented Jan 28, 2024

I have select element in node with suggest data from backend and I have problem with save data.
It will save option value, its OK, but how to save text of option and how to import it?
For exampple:

<select df-value class="select-suggest ignoreinit" >
<option value="1">Test data</option> <- generated dinamcally by another suggest library
</select>

It will save "1" but how to save also "Test data" and next time load it dinamically?

@jerosoler jerosoler self-assigned this Jan 29, 2024
@jerosoler
Copy link
Owner

You could update the node html like this and save it or call some function to update the selector.

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

2 participants