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
16 * @cfg {Boolean} active (true | false) default false
17 * @cfg {Boolean} disabled default false
21 * Create a new PaginationItem
22 * @param {Object} config The config object
26 Roo.bootstrap.PaginationItem = function(config){
27 Roo.bootstrap.PaginationItem.superclass.constructor.call(this, config);
32 * The raw click event for the entire grid.
33 * @param {Roo.EventObject} e
39 Roo.extend(Roo.bootstrap.PaginationItem, Roo.bootstrap.Component, {
48 getAutoCreate : function(){
54 href : this.href ? this.href : '#',
55 html : this.html ? this.html : ''
65 cfg.cls = typeof(cfg.cls) !== 'undefined' ? cfg.cls + ' disabled' : 'disabled';
69 cfg.cls = typeof(cfg.cls) !== 'undefined' ? cfg.cls + ' active' : 'active';
75 initEvents: function() {
77 this.el.on('click', this.onClick, this);
82 Roo.log('PaginationItem on click ');
83 if(this.preventDefault){
91 this.fireEvent('click', this, e);