TW-Elements
TW-Elements copied to clipboard
[select] [large option list generate from remote source based on user keyword search is not available]
there is no option to generate option list by ajax with based on the searched key word in select elements. if the select has more option list then it's make the webiste slow. need functionality like jquery select2 ajax.
For now I think the best way would be to create an external input that would be used for searching the key word and then after change, disposing and initing the Select again with use of JS.
We'll keep that idea of generating options list by ajax in mind.
to fix this I took these steps.
- find the value or search filed by query selector "[data-te-select-input-filter-ref]". which is the custom attr of search field.
- find the target select element by another query selector "[data-te-input-focused]".
- by sending the search data to backend i generated option form backend and assign the main hidden select. so the search option auto regenerated.