column-control
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -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); | ||
{ | ||
"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. | ||
``` |
14097
146
44