* @cfg {Number} to pagination ending number
* @cfg {String} align empty or left | right
* @cfg {Number} active active page number
+ * @cfg {Boolean} preventDefault (true | false) default true
*
* @constructor
* Create a new Pagination
to: 4,
align: false,
active: 1,
+ preventDefault: true,
getAutoCreate : function(){
var cfg = {
);
return cfg;
+ },
+
+ initEvents: function() {
+
+ this.el.on('click', this.onClick, this);
+
+ },
+ onClick : function(e)
+ {
+ Roo.log('on click ');
+ if(this.preventDefault){
+ e.preventDefault();
+ }
+
+ this.fireEvent('click', this, e);
}
});