major doc changes
[roojs1] / Roo / bootstrap / Pagination.js
index ea27d4e..cfb6845 100644 (file)
@@ -1,18 +1,21 @@
 /*
  * - 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
+ * @children Roo.bootstrap.Pagination
+ * Bootstrap Pagination class
+ * 
+ * @cfg {String} size (xs|sm|md|lg|xl)
+ * @cfg {Boolean} inverse 
  * 
  * @constructor
- * Create a new Column
+ * Create a new Pagination
  * @param {Object} config The config object
  */
 
@@ -22,20 +25,24 @@ Roo.bootstrap.Pagination = function(config){
 
 Roo.extend(Roo.bootstrap.Pagination, Roo.bootstrap.Component,  {
     
-    html: false,
     cls: false,
+    size: false,
+    inverse: false,
     
     getAutoCreate : function(){
-       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;
     }