Open geolectric opened 4 years ago
It is possible but not out of the box (like it would be possible with standard select
- handle event on input, add new value to the list, call UpdateData
). Out of the box it should be in later versions (but not in next, which is in betta currently - next version is about right-to-left, better adoptation for BS themes and .was-validated
:valid
:invalid
support)
Are there any plans for adding this anytime soon?
it is very big motivation for me that someone needs this, probably I can do it in two weeks. it is probably too late. But can you tell me your vision. How the input on new tag could be "finalized"? On
Hi. What about a simple "Enter"-key-press to add a new unknown tag to the list? Two scenarios if pressing the Enter-Key 13:
-> enter a new tag into the search field. The search list may get shown. a) if an entry in the shown tag-list is highlighted, it will be chosen when pressing the Enter key b) if none entry is selected, the current text in the "search" area is taken as new tag entry when pressing the Enter key
That's it, isn't it?
What happens with the dropdown multselect list? Should I add the new value to it? In logic of current functionality - I should, but I never seem such "solutions": usually it is enough just to add new value to "selected field". More I think about it I understand that dorpdown list is wrong base for "enter the tag" - actually there should be new component designed "to search with suggestions" (search, not select from the list). I have worked this direction "user can enable and replace plugins to make several different components: multiselect, select one, search server side and all this for all frameworks e.g. react, web components "... But it become too complex, Still if somebody is interesting in that I can return to the development and finish it.
I apologize if I missed this, but can the user add their own tags? Or can they only choose from pre-loaded tags? In the demo I couldn't see a way to add a tag not in the list.