filterMode

defines the pattern for tree item filtering

object filterMode;

Example

view:"tree", 
filterMode:{
    showSubItems:false,
    level:2
}

Related samples

Details

The filterMode property is an object that can contain 3 attributes:

  • showSubItems - (boolean) defines whether the tree should display children of the filtered items (true) (even if they don't match the filtering condition). The default value - true.
  • openParents - (boolean) - defines whether parents of the filtered items should be expanded (even if they don't match the filtering condition) so that the user can effortlessly see the result of filtering. True by default.
  • level - (number) sets the nesting level, the items from which will be filtered (one-based numbering).
See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix javascript ui library and page of javascript tree view product.