Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

slickgrid

Package Overview
Dependencies
Maintainers
2
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

slickgrid - npm Package Compare versions

Comparing version 2.4.36 to 2.4.37

27

controls/slick.gridmenu.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc