jerosoler / Drawflow

Simple flow library 🖥️🖱️
https://jerosoler.github.io/Drawflow/
MIT License
4.42k stars 714 forks source link

Select with suggest data from backend #816

Open applibs opened 5 months ago

applibs commented 5 months ago

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 commented 5 months ago

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