oam-browser-filters

2.0.0 • Public • Published

oam-browser-filters

The grid filters used by the oam-browser front end

Usage

var filters = require('oam-browser-filters')

var combo1 = filter.getCombination('all', 'all', 'all')
var combo2 = filter.getCombination('week', 'medium', 'service')

console.log(combo2.key) // the key used in the vector tile grid data
console.log(combo2.searchParams) // the oam-catalog search parameters associated w this combination of filters.

console.log(filters.getAllCombinations()) // all the possible filter combinations

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    0
  • 1.0.3
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i oam-browser-filters

Weekly Downloads

0

Version

2.0.0

License

MIT

Last publish

Collaborators

  • anandthakker