treetable external filter

edited July 25 in Technical questions

Hi, webix team & user.
I want to do filtering in treetable with external filter.
How to put filterMode in external filter ?
this is my example code


const search_toolbar = {
            margin:10, rows:[
                {
                    view:"search", 
                    name:"client_name",
                    label:_("Client"), 
                    labelPosition:"top",
                    placeholder:_("Client Name),
                    on:{
                        onTimedKeyPress:function(node)
                        {
                            webix.message(node);
                            var value = this.getValue().toLowerCase();
                            var table = $$("dt1");
                            if (!value)
                                table.filter();
                            else {
                                var res = table.filter(function(obj){
                                    return obj.name.toLowerCase().indexOf(value) != -1;
                                });
                            };    
                        }
                    },
                    filterMode:{
                        level:1
                    },
                              
                }
            ]
        };

And it still didn't work. Thx

Comments

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