TLDR我希望 EXTJS 的树形面板记住它以前的设置。ExtJS-3.2.1
我之前已经为 ExtJS-2.xx 看到过此操作:请参阅 extjs 论坛上的此处。
但正如他们所看到的那样,它们几乎毫无生气,那里有线程问这个问题或类似的问题,长达 6 个月没有回复。我以为我会把它带到这里。
我需要能够让我的 treePanel 记住以前打开的文件夹以及选中了哪些框。它是异步 treePanel。请注意,这都是客户端脚本。
面板如下:
var layerTree = new Ext.tree.TreePanel({
border: true,
region: "east",
title: 'LayersTree',
width: 250,
split: true,
collapsible: true,
collapsed: true,
iconCls: 'treePanelIcon',
enableDD: true,
autoScroll: true,
//pulls in layers and their attributes//
root: new Ext.tree.AsyncTreeNode({ leaf: false,
loaded: false,
expanded: true,
text: 'Tree Root',
children: treeLayers
})
我正在使用 ExtJS-3.2.1、GeoExt、OpenLayers。
有人做过这个或知道怎么做吗?(在 extjs-3.2.1 中)
(最好使用插件,但感谢任何答案)
有人知道如何使用extjs的保存状态功能绑定到cookie吗?