slickgrid
Advanced tools
Comparing version 2.4.36 to 2.4.37
@@ -25,2 +25,5 @@ /*** | ||
* resizeOnShowHeaderRow: false, // false by default | ||
* showButton: true, // true by default - it allows the user to control if the | ||
* // default gridMenu button (located on the top right corner by default CSS) | ||
* // should be created or omitted | ||
* useClickToRepositionMenu: true, // true by default | ||
@@ -132,3 +135,2 @@ * | ||
var _isMenuOpen = false; | ||
var _options = options; | ||
var _self = this; | ||
@@ -144,2 +146,3 @@ var $customTitleElm; | ||
var _defaults = { | ||
showButton: true, | ||
hideForceFitButton: false, | ||
@@ -158,2 +161,3 @@ hideSyncResizeButton: false, | ||
}; | ||
var _options = $.extend(true, {}, {gridMenu: _defaults}, options); | ||
@@ -199,10 +203,15 @@ // when a grid changes from a regular grid to a frozen grid, we need to destroy & recreate the grid menu | ||
$button = $('<button class="slick-gridmenu-button"/>'); | ||
if (_options.gridMenu && _options.gridMenu.iconCssClass) { | ||
$button.addClass(_options.gridMenu.iconCssClass); | ||
} else { | ||
var iconImage = (_options.gridMenu && _options.gridMenu.iconImage) ? _options.gridMenu.iconImage : "../images/drag-handle.png"; | ||
$('<img src="' + iconImage + '"/>').appendTo($button); | ||
if(_options.gridMenu.showButton) | ||
{ | ||
$button = $('<button class="slick-gridmenu-button"/>'); | ||
if (_options.gridMenu && _options.gridMenu.iconCssClass) { | ||
$button.addClass(_options.gridMenu.iconCssClass); | ||
} else { | ||
var iconImage = (_options.gridMenu && _options.gridMenu.iconImage) ? _options.gridMenu.iconImage : "../images/drag-handle.png"; | ||
$('<img src="' + iconImage + '"/>').appendTo($button); | ||
} | ||
$button.insertBefore($header); | ||
// add on click handler for the Grid Menu itself | ||
$button.on("click." + _gridUid, showGridMenu); | ||
} | ||
$button.insertBefore($header); | ||
@@ -224,4 +233,2 @@ $menu = $('<div class="slick-gridmenu ' + _gridUid + '" style="display: none" />').appendTo(document.body); | ||
// add on click handler for the Grid Menu itself | ||
$button.on("click." + _gridUid, showGridMenu); | ||
} | ||
@@ -228,0 +235,0 @@ |
{ | ||
"name": "slickgrid", | ||
"version": "2.4.36", | ||
"version": "2.4.37", | ||
"description": "A lightning fast JavaScript grid/spreadsheet", | ||
@@ -5,0 +5,0 @@ "main": "slick.core.js", |
@@ -140,3 +140,3 @@ /** | ||
// if there's a UsabilityOverride defined, we also need to verify that the condition is valid | ||
if (_usabilityOverride) { | ||
if (_usabilityOverride && dd.canMove) { | ||
var insertBeforeDataContext = _grid.getDataItem(insertBefore); | ||
@@ -143,0 +143,0 @@ dd.canMove = checkUsabilityOverride(insertBefore, insertBeforeDataContext, _grid); |
@@ -142,2 +142,5 @@ (function ($) { | ||
function reset(){ | ||
_store.set(options.key_prefix + _cid, {}); | ||
} | ||
/* | ||
@@ -151,5 +154,6 @@ * API | ||
"restore": restore, | ||
"onStateChanged": onStateChanged | ||
"onStateChanged": onStateChanged, | ||
"reset": reset | ||
}); | ||
} | ||
})(jQuery); |
@@ -294,2 +294,5 @@ (function ($) { | ||
function getFilteredItemCount() { | ||
return filteredItems.length; | ||
} | ||
@@ -1379,2 +1382,3 @@ function getFilter() { | ||
"getFilteredItems": getFilteredItems, | ||
"getFilteredItemCount": getFilteredItemCount, | ||
"sort": sort, | ||
@@ -1381,0 +1385,0 @@ "fastSort": fastSort, |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4570599
101274