0.1.2 • Published 6 years ago

@metacorp/html-trie v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

Html Trie

Html binding for Trie

Build Status

Installation

NPM

npm install @metacorp/html-trie @metacorp/trie

CDN

<script src="https://unpkg.com/@metacorp/trie"></script>
<script src="https://unpkg.com/@metacorp/trie-html"></script>

Usage

Initialize Trie with an array of data.

const htmlTrie = new HtmlTrie(Trie, ['Apple', 'Lemon', 'Orange', 'Tomato'])

Now bind an input with searchBox

htmlTrie.searchBox({
  container: document.getElementById('searchBox')
})

And an result element with hits

htmlTrie.hits({
  container: document.getElementById('hits')
})

Configuration

// Don't preprocess at all
HtmlTrie.config.hitClassName = 'result-item'

License

Licensed under the MIT License

Copyright (c) Meta l.szabatura@gmail.com

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago