6.1.1 • Published 2 months ago
n-topic-search v6.1.1
n-topic-search
Search for topics and equities based on a keyword
Usage
const topicSearch = require('n-topic-search');
new topicSearch(containerEl)
- containerEl: element containing the search input and element to put suggestions in
Markup
<form data-typeahead data-typeahead-categories="concepts,equities" data-typeahead-view-all>
<input data-typeahead-input>
<button type="submit">
Search
</button>
</form>
data attribute options
- categories: which categories of results to return
- view-all: whether to include 'view all' links
Experimental
The constructor also accepts a second parameter'
listComponent a function implementing the following interface
parameters - element - opts { categories: this.categories, itemTag: this.itemTag, includeViewAllLink: this.includeViewAllLink, searchEl: this.searchEl } returns an object implementing the following methods setState handleSelection
6.1.2-alpha.0
2 months ago
6.1.1
3 months ago
6.1.0
7 months ago
5.0.0
10 months ago
6.0.0
10 months ago
4.0.0
2 years ago
3.3.0
2 years ago
3.2.2
2 years ago
3.2.1
2 years ago
3.2.0
2 years ago
3.1.0
2 years ago
3.2.3
2 years ago
3.0.0
4 years ago
2.0.0
4 years ago
1.2.1
5 years ago
1.2.0
5 years ago
1.1.1
5 years ago
1.1.0
5 years ago
1.0.9
5 years ago
1.0.8
5 years ago
1.0.7
5 years ago
1.0.6
5 years ago
1.0.5
5 years ago
1.0.4
5 years ago