hypnotable-filter
Filter hypnotable tables
Last updated 7 years ago by dguttman .
MIT · Original npm · Tarball · package.json
$ cnpm install hypnotable-filter 
SYNC missed versions from official npm registry.

hypnotable-filter

Filter hypnotable tables

npm i hypnotable-filter

Example


var htFilter = require('hypnotable-filter')
var hypnotable = require('hypnotable')

var data = require('./data.json') // [ { "date": ..., "browser": ... }, ...]

var columns = 
  [ {property: 'date'}
  , {property: 'browser'}
  , {property: 'browserVersion', title: 'Browser Version'}
  , {property: 'advanced', title: 'Advanced?'}
  ]

var filter = htFilter(columns)
var ht = hypnotable(columns, filter.add)

document.body.appendChild(filter.el)
document.body.appendChild(ht.el)

data.forEach(function(row) {
  ht.write(row)
})

License

MIT

Current Tags

  • 0.0.0                                ...           latest (7 years ago)

1 Versions

  • 0.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (4)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |