开发者

Qooxdoo TreeVirtual only returns expanded nodes as dataModel

开发者 https://www.devze.com 2023-01-18 21:00 出处:网络
when i do a this._tree.getDataModel(); in qooxdoo on a treevirtual, i only get back the expanded nodes. How can i get all node开发者_Go百科s in the tree?I found a solution by my self. The getData() fu

when i do a this._tree.getDataModel(); in qooxdoo on a treevirtual, i only get back the expanded nodes. How can i get all node开发者_Go百科s in the tree?


I found a solution by my self. The getData() function provides an array of all nodes in the datamodel.

var dataModel = this._tree.getDataModel();
var dataArray = dataModel.getData();
0

精彩评论

暂无评论...
验证码 换一张
取 消