The TreeStore is a store implementation designed for the
Ext.tree.Panel component. It provides methods for loading nodes, and it has the ability to use the hierarchical tree structure combined with the store capabilities. The
Ext.data.TreeStore class is a subclass of the
Ext.data.AbstractStore class, that's why it behaves very similar to other stores.
When we define our
Ext.data.TreeStore class we need to specify a model, but if no model is specified, an implicit model will be created. This model will then be the main model for our tree panel. For the tree to read the nested data, we need to apply a set of data in a tree format as shown in the previous example.
Let's see an example of an
Ext.tree.Panel component with an