Sha256: 332bfb2a6557a820b176deb696c69d2bc458350528a5a203268f7d642ea1bd6f
Contents?: true
Size: 1 KB
Versions: 5
Compression:
Stored size: 1 KB
Contents
Ext.ns('Rwiki.TreePanel'); Rwiki.TreePanel.Toolbar = Ext.extend(Ext.Toolbar, { constructor: function() { var self = this; var filterField = new Ext.form.TextField({ width: 200, emptyText: 'Find a Page', enableKeyEvents: true, listeners: { keydown: { fn: function() { var text = this.getValue(); self.fireEvent('filterFieldChanged', text); }, buffer: 350 } } }); Ext.apply(this, { items: [ filterField, { iconCls: 'icon-expand-all', tooltip: 'Expand All', handler: function() { self.fireEvent('expandAll'); } }, { iconCls: 'icon-collapse-all', tooltip: 'Collapse All', handler: function() { self.fireEvent('collapseAll'); } }] }); Rwiki.TreePanel.Toolbar.superclass.constructor.apply(this, arguments); this.addEvents('filterFieldChanged', 'expandAll', 'collapseAll'); } });
Version data entries
5 entries across 5 versions & 1 rubygems