Security News
cURL Project and Go Security Teams Reject CVSS as Broken
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
column-control
Advanced tools
Input an html table. Output controls to hide / show / move columns of that table.
Controls:
With drop down open:
To play with an example, download and run: npm run-script example
A basic implementation:
var cc = require('column-control');
var targetTable = document.querySelector('.target-table');
var opts = {
table: targetTable
};
var controls = cc(opts);
If you do not use the "columns" option (detailed below), then column-control will use the data in the first row of the target table as titles for the controls.
Options:
table : (required) this is a reference to the table you are
making controls for.
defaultColumns : an array of the column titles you want shown upon load.
Use this only if you are not using the "columns" option.
columns : this is an array of objects. each object holds options for
that column and may contain:
title : (string) what is displayed as the label in the
drop down and button control
default : (boolean) show/hide on load
additionalControl : (DOM element) use this is you'd like to drop some
additional html into the button control for each
column. Example coming soon.
FAQs
decorate an html table with basic column controls
The npm package column-control receives a total of 0 weekly downloads. As such, column-control popularity was classified as not popular.
We found that column-control 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
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.