Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
ExtJs 4 stateful tree plugin
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
example
ux
.gitattributes
.gitignore
LICENSE
README.md

README.md

Plugin for Sencha ExtJS 5.1 for saving Ext.tree.Panel (treepanel) folders collapsed / expanded state.

How to use:

First you need init state provider:

Ext.state.Manager.setProvider(new Ext.state.CookieProvider({
  expires: new Date(new Date().getTime()+(1000*60*60*24*7)) //7 days from now
}));

Your tree view:

Ext.define('app.view.Tree', {
  extend:'Ext.tree.Panel',
  title: 'Stateful tree',

  viewConfig: {

    stateful: true,   // Require
    stateId: 'my_id', //Require, your tree id 

    plugins:  [ Ext.create('Ext.ux.TreeStateful') ] // TreeStateful plugin
  },
  store: 'productsTreeStore' // store id
});

Known issues:

  • Report if you find any issues
Something went wrong with that request. Please try again.