TW-Elements icon indicating copy to clipboard operation
TW-Elements copied to clipboard

[select] [large option list generate from remote source based on user keyword search is not available]

Open kochivai opened this issue 1 year ago • 2 comments

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.

kochivai avatar Jul 30 '23 09:07 kochivai

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.

juujisai avatar Aug 01 '23 06:08 juujisai

to fix this I took these steps.

  1. find the value or search filed by query selector "[data-te-select-input-filter-ref]". which is the custom attr of search field.
  2. find the target select element by another query selector "[data-te-input-focused]".
  3. by sending the search data to backend i generated option form backend and assign the main hidden select. so the search option auto regenerated.

kochivai avatar Sep 16 '23 04:09 kochivai