how show data from treecollection in combo?

Hi!
I need to display the contents of any level of the tree in a combo popupList to edit records.
For example, in order to create a new element or change one of the values to it without displaying the entire tree

https://snippet.webix.com/spwh3w8r

Comments

  • @Roman
    try to override combo's popup and set its body to tree or other suitable view

    class combo extends JetView {
      config () {
        return {
          view:"combo",
          label:'car',
          name: "car",
          suggest:{
            body:{
              view:'tree'
            }
          }
          //data:treedata
        }
      }
    
      init(view){
        view.getList().sync(treedata);
      }
    }
    
  • У меня челюсть на стол упала!!!
    Это нечто!!!! Огонь огненный!!!
    То что надо!
    Спасибо!!!

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!

In this Discussion