Skip to content

Instantly share code, notes, and snippets.

View vitaliy-evsyukov's full-sized avatar

Виталий Евсюков vitaliy-evsyukov

View GitHub Profile
@colinramsay
colinramsay / extjs4-treefilter.js
Created February 10, 2012 12:58
Add filtering to Ext JS 4's TreePanel (Ext.tree.Panel)
/**
* Add basic filtering to Ext.tree.Panel. Add as a mixin:
* mixins: {
* treeFilter: 'MyApp.lib.TreeFilter'
* }
*/
Ext.define('MyApp.lib.TreeFilter', {
filterByText: function(text) {
this.filterBy(text, 'text');
},