slickgrid
Advanced tools
Comparing version 2.4.7 to 2.4.8
@@ -114,3 +114,3 @@ /*** | ||
} | ||
$("<label />") | ||
@@ -180,3 +180,12 @@ .html(columnLabel) | ||
} | ||
columns = ordered; | ||
// filter out excluded column header when necessary | ||
// (works with IE9+, older browser requires a polyfill for the filter to work, visit MDN for more info) | ||
if (Array.isArray(ordered) && typeof ordered.filter === 'function') { | ||
columns = ordered.filter(function(columnDef) { | ||
return !columnDef.excludeFromColumnPicker; | ||
}); | ||
} else { | ||
columns = ordered; | ||
} | ||
} | ||
@@ -183,0 +192,0 @@ |
@@ -387,3 +387,12 @@ /*** | ||
} | ||
columns = ordered; | ||
// filter out excluded column header when necessary | ||
// (works with IE9+, older browser requires a polyfill for the filter to work, visit MDN for more info) | ||
if (Array.isArray(ordered) && typeof ordered.filter === 'function') { | ||
columns = ordered.filter(function(columnDef) { | ||
return !columnDef.excludeFromGridMenu; | ||
}); | ||
} else { | ||
columns = ordered; | ||
} | ||
} | ||
@@ -390,0 +399,0 @@ |
@@ -149,2 +149,7 @@ /*! | ||
$special.drop.handler( event, dd ); | ||
// if user is not dragging | ||
if(!dd.click && dd.distance === 0 && !dd.dragging) { | ||
drag.textselect( true ); | ||
return; | ||
} | ||
// disable text selection | ||
@@ -151,0 +156,0 @@ drag.textselect( false ); |
{ | ||
"name": "slickgrid", | ||
"version": "2.4.7", | ||
"version": "2.4.8", | ||
"description": "A lightning fast JavaScript grid/spreadsheet", | ||
@@ -5,0 +5,0 @@ "main": "slick.core.js", |
@@ -20,2 +20,3 @@ /*** | ||
* panelRows: Row count to use for the template panel | ||
* singleRowExpand: Defaults to false, limit expanded row to 1 at a time. | ||
* useRowClick: Boolean flag, when True will open the row detail on a row click (from any column), default to False | ||
@@ -113,2 +114,3 @@ * keyPrefix: Defaults to '_', prefix used for all the plugin metadata added to the item object (meta e.g.: padding, collapsed, parent) | ||
saveDetailViewOnScroll: true, | ||
singleRowExpand: false, | ||
useSimpleViewportCalc: false, | ||
@@ -203,2 +205,5 @@ alwaysRenderColumn: true, | ||
_options = $.extend(true, {}, _options, options); | ||
if (_options && _options.singleRowExpand) { | ||
collapseAll(); | ||
} | ||
} | ||
@@ -465,2 +470,6 @@ | ||
function expandDetailView(item) { | ||
if (_options && _options.singleRowExpand) { | ||
collapseAll(); | ||
} | ||
item[_keyPrefix + 'collapsed'] = false; | ||
@@ -658,3 +667,3 @@ _expandedRows.push(item); | ||
html.push('top:', rowHeight, 'px">'); //shift detail below 1st row | ||
html.push('<div class="detail-container detailViewContainer_', dataContext.id, '" style="min-height:' + dataContext[_keyPrefix + 'height'] + 'px">'); //sub ctr for custom styling | ||
html.push('<div class="detail-container detailViewContainer_', dataContext.id, '">'); //sub ctr for custom styling | ||
html.push('<div class="innerDetailView_', dataContext.id, '">', dataContext[_keyPrefix + 'detailContent'], '</div></div>'); | ||
@@ -661,0 +670,0 @@ // &omit a final closing detail container </div> that would come next |
@@ -67,3 +67,3 @@ (function ($) { | ||
// .rowSelectionCount: 100 | ||
// .valueFilterMode: None (None, DeDuplicate, GetGreatest, GetLongestText, CompareFunction()) | ||
// .valueFilterMode: None (None, DeDuplicate, GetGreatest, GetLongestText, CompareFunction(), FilterFunction()) | ||
// .widthEvalMode: HTML (CanvasTextSize, HTML) | ||
@@ -70,0 +70,0 @@ // .sizeToRemaining: undefined |
Sorry, the diff of this file is too big to display
3639538
92665