One component with different containers.

Hello,

is it possible to use one webix component ( in my case Combobox ) with different containers ?

Lets say i have 4 div elements and each should contain a combobox. But i don't want to write 4 different comboboxes.

Tagged:

Comments

  • It is possible to populate the same config between different UI with webix.copy, but please note that the ID of the widget has to be unique, as they will belong to the one Webix scope.

    Also, container is a property for the top level of the UI, not for a nested layout cell or widget:

    var combo = { };
    
    webix.ui({
      container:"testA",
      rows:[webix.copy(combo)]
    });
    

    or something like that: https://webix.com/snippet/cd96318c

  • Thank you

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!