combo: editable

Hey, webIx team. I want to ask if there are any plans to make a "combo" with the ability to add a new non-existent option?
Before release 7.2, it was possible to add "editable: true", but now it has been removed (https://docs.webix.com/api__ui.combo_editable_config.html).

As a result of the forum search, several topics with similar questions were found. The answer to all of them was the advice to use "text "+"suggest" ([https://forum.webix.com/discussion/31350/combo-behaviour-when-editable-is-true]
[https://forum.webix.com/discussion/32607/combo-editor-editable-property]
[https://forum.webix.com/discussion/36774/editable-combo]
).
This solution does not fully meet my requirements as it provides a user experience that is not equivalent to the usual "combo".

Tagged:

Comments

  • Hello @IBeJIuk,

    I want to ask if there are any plans to make a "combo" with the ability to add a new non-existent option? Before release 7.2, it was possible to add "editable: true", but now it has been removed

    We have decided to remove the editable property from the combo API, as it does not correspond to the initially intended behaviour of the component. So no, we don't plan to do it.
    However, I would like to suggest an alternative solution to provide the possibility to include new options to the combo (which also makes the process more clear for user): https://snippet.webix.com/jm60aam9
    The new value can be added by clicking on a corresponding label when the user types something in the input.

  • edited March 10

    @annazankevich
    Thank you for the answer. I'll try this approach.
    p.s. The example doesn't work in firefox.
    https://i.imgur.com/5uCaEXg.jpg

  • Sorry for the delay,

    It seems FF required setting an absolute position for icons explicitly (see line 13), otherwise, they moved to overflow: https://snippet.webix.com/u6y3lrd5

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!