Getting a feature-rich tree interface such as Ext.tree.TreePanel
up and running in eleven lines of code is pretty impressive, and we've shown that it is possible. Over and above that, this chapter has demonstrated that the TreePanel's
strength is not simply in its ease of use, but in the way we can use its wealth of configuration options to deliver application-specific functionality.
The use of asynchronous loading is an important feature of the TreePanel
, because it provides a way of consuming large amounts of dynamic data in a scalable fashion. It's also handled transparently by Ext.tree
, which means that the implementation is as beneficial for the developer as it is for the end user.
Despite all of their power, the Ext.tree
classes still manage to feel pretty lightweight in use. It's easy to tame that power by using the configuration options, the methods, and the events that the TreePanel
and TreeNode
provide, but it's not just about these classes. TreeSorter...