Skip to content

About

ExtJs 4 stateful tree plugin

Resources

Stars

0 stars

Watchers

1 watching

Forks

 
 

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

ExtJs 4 stateful tree plugin

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages