From 719119625600ddf1baeaf33e7ff5dd052e6929c1 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 9 Jul 2021 14:19:25 +0800 Subject: [PATCH] sync --- docs/json/roodata.json | 2 +- docs/src/Roo_bootstrap_Table.js.html | 10 +++++----- docs/src/Roo_grid_ColumnModel.js.html | 4 +++- docs/symbols/Roo.grid.ColumnModel.json | 2 +- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/docs/json/roodata.json b/docs/json/roodata.json index bb52aa1754..c62582a023 100644 --- a/docs/json/roodata.json +++ b/docs/json/roodata.json @@ -97549,7 +97549,7 @@ { "name" : "getColumnByDataIndex", "type" : "function", - "desc" : "Returns the column for a specified dataIndex.", + "desc" : "Returns the column Object for a specified dataIndex.", "sig" : "(dataIndex)", "static" : false, "memberOf" : "" diff --git a/docs/src/Roo_bootstrap_Table.js.html b/docs/src/Roo_bootstrap_Table.js.html index 02eb054fc1..daf0263bc3 100644 --- a/docs/src/Roo_bootstrap_Table.js.html +++ b/docs/src/Roo_bootstrap_Table.js.html @@ -551,7 +551,7 @@ var sort = col.attr('sort'); var dir = 'ASC'; - if(col.select('i', true).first().hasClass('glyphicon-arrow-up')){ + if(col.select('i', true).first().hasClass('fa-arrow-up')){ dir = 'DESC'; } @@ -591,7 +591,7 @@ if(typeof(config.sortable) != 'undefined' && config.sortable){ c.cls = 'sortable'; - c.html = '<i class="glyphicon"></i>' + c.html; + c.html = '<i class="fa"></i>' + c.html; } // could use BS4 hidden-..-down @@ -726,15 +726,15 @@ var ds = this.store; Roo.each(this.el.select('thead th.sortable', true).elements, function(e){ - e.select('i', true).removeClass(['glyphicon-arrow-up', 'glyphicon-arrow-down']); + e.select('i', true).removeClass(['fa-arrow-up', 'fa-arrow-down']); if (_this.store.sortInfo) { if(e.hasClass('sortable') && e.attr('sort') == _this.store.sortInfo.field && _this.store.sortInfo.direction.toUpperCase() == 'ASC'){ - e.select('i', true).addClass(['glyphicon-arrow-up']); + e.select('i', true).addClass(['fa-arrow-up']); } if(e.hasClass('sortable') && e.attr('sort') == _this.store.sortInfo.field && _this.store.sortInfo.direction.toUpperCase() == 'DESC'){ - e.select('i', true).addClass(['glyphicon-arrow-down']); + e.select('i', true).addClass(['fa-arrow-down']); } } }); diff --git a/docs/src/Roo_grid_ColumnModel.js.html b/docs/src/Roo_grid_ColumnModel.js.html index 9d78d67876..1e16807401 100644 --- a/docs/src/Roo_grid_ColumnModel.js.html +++ b/docs/src/Roo_grid_ColumnModel.js.html @@ -188,7 +188,7 @@ /** - * Returns the column for a specified dataIndex. + * Returns the column Object for a specified dataIndex. * @param {String} dataIndex The column dataIndex * @return {Object|Boolean} the column or false if not found */ @@ -523,6 +523,8 @@ { var i = this.config.length; + this.config[i] = c; + if(typeof c.dataIndex == "undefined"){ c.dataIndex = i; } diff --git a/docs/symbols/Roo.grid.ColumnModel.json b/docs/symbols/Roo.grid.ColumnModel.json index 544db99abf..e9b8330f80 100644 --- a/docs/symbols/Roo.grid.ColumnModel.json +++ b/docs/symbols/Roo.grid.ColumnModel.json @@ -738,7 +738,7 @@ }, { "name" : "getColumnByDataIndex", - "desc" : "Returns the column for a specified dataIndex.", + "desc" : "Returns the column Object for a specified dataIndex.", "isStatic" : false, "isConstructor" : false, "isPrivate" : false, -- 2.39.2