10.0.0 • Published 4 months ago
n-topic-search v10.0.0
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
10.0.0
4 months ago
8.0.5
9 months ago
8.0.6-beta.1
5 months ago
9.0.0
5 months ago
7.1.0-beta.0
10 months ago
7.1.0-beta.2
10 months ago
8.0.4
9 months ago
7.1.0-beta.1
10 months ago
7.1.0-beta.4
10 months ago
7.1.0-beta.3
10 months ago
7.1.0-beta.6
10 months ago
7.0.0
10 months ago
7.1.0-beta.5
10 months ago
7.1.0-beta.8
10 months ago
7.1.0-beta.7
10 months ago
7.1.0-beta.9
10 months ago
7.0.1
10 months ago
8.0.1
10 months ago
8.0.0
10 months ago
8.0.3
10 months ago
8.0.2
10 months ago
6.1.2-alpha.0
1 year ago
6.1.1
1 year ago
6.1.0
2 years ago
5.0.0
2 years ago
6.0.0
2 years ago
4.0.0
3 years ago
3.3.0
3 years ago
3.2.2
3 years ago
3.2.1
3 years ago
3.2.0
3 years ago
3.1.0
3 years ago
3.2.3
3 years ago
3.0.0
5 years ago
2.0.0
6 years ago
1.2.1
6 years ago
1.2.0
6 years ago
1.1.1
6 years ago
1.1.0
6 years ago
1.0.9
6 years ago
1.0.8
6 years ago
1.0.7
6 years ago
1.0.6
6 years ago
1.0.5
6 years ago
1.0.4
6 years ago