
Security News
npm ‘is’ Package Hijacked in Expanding Supply Chain Attack
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
backgrid-orderable-columns
Advanced tools
Warning! This extension is not production ready yet, just a mere proof of concept. It lacks documentation, automatic testing and edge-case tests.
To discuss this extension, see this backgrid issue.
Online demo of can be found here
// Setup sortable column collection
var columnCollection = Backgrid.Columns.extend({
sortKey: "position",
comparator: function(item) {
return item.get(this.sortKey) || 999;
},
setPositions: function() {
_.each(this.models, function(model, index) {
model.set("position", index + 1, {silent: true});
});
return this;
}
});
var columns = new columnCollection(columnsArray);
columns.setPositions().sort();
// Add sizeable columns
var sizeAbleCol = new Backgrid.Extension.sizeAbleColumns({
collection: pageableTerritories,
columns: columns
});
$backgridContainer.find('thead').before(sizeAbleCol.render().el);
// Make columns reorderable
var orderHandler = new Backgrid.Extension.OrderableColumns({
grid: pageableGrid,
sizeAbleColumns: sizeAbleCol
});
$backgridContainer.find('thead').before(orderHandler.render().el);
Copyright © 2014 Fortes Solutions.
Licensed under the MIT license.
This extension was created by Wilbert van de Ridder and is currently maintained by Fortes Solutions Team.
FAQs
Backgrid.js extension for (re)orderable columns.
The npm package backgrid-orderable-columns receives a total of 398 weekly downloads. As such, backgrid-orderable-columns popularity was classified as not popular.
We found that backgrid-orderable-columns demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
Security News
A critical flaw in the popular npm form-data package could allow HTTP parameter pollution, affecting millions of projects until patched versions are adopted.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.