javascriptextjstreepanel

TreePanel Nodes with filtered Children


I have a TreePanel. When I filter the store of the TreePanel so that a node appears to be empty, the symbol to open the node is still there. I think it would be better if the symbol to open the folder disappeared if its content is not visible. Is there a solution for this?

https://fiddle.sencha.com/#view/editor&fiddle/2438


Solution

  • You can set "expandable: false" on the filtered and empty nodes (children:[]) and do the same thing when inserting new code.