New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

column-control

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

column-control - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

13

example/basic.js

@@ -12,3 +12,14 @@ require('cssify').byUrl('//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css')

var buttons = cc({table:targetTable});
columns = [
{title: 'Payment Frequency', default: 1},
{title: 'Net Terms', default: 1},
{title: 'Payment Method', default: 1},
{title: 'Due In', default: 0},
{title: 'Client Count', default: 0},
{title: 'Revenue', default: 1}
];
var buttons = cc({table:targetTable, columns:columns});
controls.appendChild(buttons);

2

package.json
{
"name": "column-control",
"version": "0.1.1",
"version": "0.1.2",
"description": "decorate an html table with basic column controls",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -32,10 +32,9 @@ # Column-Control

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.
- OR -
columns - this is an array of objects. each object holds options for that column and may contain:

@@ -46,2 +45,1 @@

additionalControl - (DOM element) use this is you'd like to drop some additional html into the button control for each column. Example coming soon.
```
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