10 * @class Roo.bootstrap.PaginationItem
11 * @extends Roo.bootstrap.Component
12 * Bootstrap PaginationItem class
13 * @cfg {String} html text
14 * @cfg {String} href the link
15 * @cfg {Boolean} preventDefault (true | false) default true
19 * Create a new PaginationItem
20 * @param {Object} config The config object
24 Roo.bootstrap.PaginationItem = function(config){
25 Roo.bootstrap.PaginationItem.superclass.constructor.call(this, config);
30 * The raw click event for the entire grid.
31 * @param {Roo.EventObject} e
37 Roo.extend(Roo.bootstrap.PaginationItem, Roo.bootstrap.Component, {
43 getAutoCreate : function(){
49 href : this.href ? this.href : '#',
50 html : this.html ? this.html : ''
58 initEvents: function() {
60 this.el.on('click', this.onClick, this);
65 Roo.log('PaginationItem on click ');
66 if(this.preventDefault){
70 this.fireEvent('click', this, e);