Custom Events

initComponent: function(){
    this.addEvents('beforeexpand', 'expand');
},

expand: function(){
    if(this.fireEvent('beforeexpand', this, e) !== false){
        // expand logic
        this.fireEvent('expand', this, e);
    }
}