fix docs
[roojs1] / Roo / bootstrap / Pagination.js
index 6e5aa02..616d0f6 100644 (file)
@@ -1,43 +1,46 @@
 /*
  * - LGPL
  *
- * column
+ * pagination
  * 
  */
 
 /**
- * @class Roo.bootstrap.Column
+ * @class Roo.bootstrap.Pagination
  * @extends Roo.bootstrap.Component
- * Bootstrap Column class
- * @cfg {number} colspan  Number of columsn to span
+ * Bootstrap Pagination class
+ * @cfg {String} size xs | sm | md | lg
+ * @cfg {Boolean} inverse false | true
  * 
  * @constructor
- * Create a new Column
+ * Create a new Pagination
  * @param {Object} config The config object
  */
 
-Roo.bootstrap.Table = function(config){
-    Roo.bootstrap.Table.superclass.constructor.call(this, config);
+Roo.bootstrap.Pagination = function(config){
+    Roo.bootstrap.Pagination.superclass.constructor.call(this, config);
 };
 
-Roo.extend(Roo.bootstrap.Table, Roo.bootstrap.Component,  {
+Roo.extend(Roo.bootstrap.Pagination, Roo.bootstrap.Component,  {
     
-    html: false,
     cls: false,
+    size: false,
+    inverse: false,
     
     getAutoCreate : function(){
-        var cfg = Roo.apply({}, Roo.bootstrap.Table.superclass.getAutoCreate.call(this));
-       
-       cfg = {
-           tag: 'table'
-       }
+        var cfg = {
+            tag: 'ul',
+                cls: 'pagination'
+        };
+        if (this.inverse) {
+            cfg.cls += ' inverse';
+        }
         if (this.html) {
-            cfg.html=this.html
+            cfg.html=this.html;
         }
         if (this.cls) {
-            cfg.cls=this.cls
+            cfg.cls += " " + this.cls;
         }
-       
         return cfg;
     }