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 strength of the TreePanel
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. And no matter what backend you're using, a custom Ext.tree.TreeLoader
can consume JSON and XML in any format.
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...