O'Reilly logo

Learning Ext JS 4 by Armando Gonzalez, Crysfel Villa

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Tree nodes

The Ext.data.NodeInterface class is a set of methods that are applied to the model to decorate it with a node API. This means that when we use a model with a tree, the model will have all the tree-related methods. This class also creates extra fields on the model to help maintain the tree state and the UI.

Some of the field's configurations are as follows:

  • text: This property configures the text to show on the node label.
  • root: This property is true if this is the root node.
  • leaf: If this property is set to true, it indicates that this child can have no children. The expand icon/arrow will not be rendered for this node.
  • expanded: This property is true if the node is expanded.
  • iconCls: This property configures the CSS class to apply for this ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required