Roo/grid/ColumnModel.js
authorAlan Knowles <alan@roojs.com>
Mon, 26 Jul 2021 04:31:38 +0000 (12:31 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 26 Jul 2021 04:31:38 +0000 (12:31 +0800)
Roo/grid/ColumnModel.js

index a779a1b..56e7dfb 100644 (file)
@@ -108,6 +108,21 @@ Roo.grid.ColumnModel = function(config){
 Roo.extend(Roo.grid.ColumnModel, Roo.util.Observable, {
     /**
      * @cfg {String} header The header text to display in the Grid view.
+     */
+       /**
+     * @cfg {String} xsHeader Header at Bootsrap Medium width
+     */
+       /**
+     * @cfg {String} smHeader Header at Bootsrap Medium width
+     */
+       /**
+     * @cfg {String} mdHeader Header at Bootsrap Medium width
+     */
+       /**
+     * @cfg {String} lgHeader Header at Bootsrap Large width
+     */
+       /**
+     * @cfg {String} xlHeader Header at Bootsrap extra Large width
      */
     /**
      * @cfg {String} dataIndex (Optional) The name of the field in the grid's {@link Roo.data.Store}'s
@@ -349,10 +364,17 @@ Roo.extend(Roo.grid.ColumnModel, Roo.util.Observable, {
     /**
      * Returns the width for the specified column.
      * @param {Number} col The column index
+     * @param (optional) {String} gridSize bootstrap width size.
      * @return {Number}
      */
-    getColumnWidth : function(col){
-        return this.config[col].width * 1 || this.defaultWidth;
+    getColumnWidth : function(col, gridSize)
+       {
+               var ret = this.config[col].width * 1 || this.defaultWidth;
+               if (typeof(gridSize) == 'undefined') {
+                       return ret;
+               }
+               
+               
     },
 
     /**