From edc04b114208b9f27e06dd962abf0350bf3429fe Mon Sep 17 00:00:00 2001 From: ckosmowski Date: Thu, 20 Nov 2014 14:27:57 +0100 Subject: [PATCH] Introduced option "showSortIndicator" to give the ability to (if set to false) hide the sortIndicator that doby-grid will automatically create. This is important if users have implemented their own sort mechanism --- src/doby-grid.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/doby-grid.js b/src/doby-grid.js index 0c5ac99..8b4dbc6 100644 --- a/src/doby-grid.js +++ b/src/doby-grid.js @@ -454,6 +454,7 @@ selectedClass: "selected", shiftSelect: true, showHeader: true, + showSortIndicator: true, stickyFocus: false, stickyGroupRows: false, tooltipType: "popup", @@ -8344,7 +8345,7 @@ html.push('>'); html.push('' + column.name + ''); - if (column.sortable) { + if (column.sortable && self.options.showSortIndicator) { html.push(''); } @@ -10188,7 +10189,7 @@ * @private */ styleSortColumns = function () { - if (!self.options.showHeader) return; + if (!self.options.showHeader || !self.options.showSortIndicator) return; var headerColumnEls = $headers.children(); headerColumnEls