You need the parameters in Listing 2 to construct a TreeModel.
您需要清单2中的参数来构建一个TreeModel。
Look through the source code of TreeGrid and TreeModel in Listing 6 to see how expanding sub-rows work.
仔细查看清单6中的TreeGrid和treemodel源代码,看看如何展开子条目。
To get started, you need to define the query of the ForestStoreModel (an implementation of TreeModel) to return the multiple top-level items for the TreeGrid.
开始之前,您需要定义ForestStoreModel (TreeModel的一个实现)的查询来返回TreeGrid的多个顶级条目。
应用推荐