FEATURE: Add `selectTag`, `tags`, and `categories` to plugin outlet. (#38)
This commit is contained in:
parent
f61de2d871
commit
a5bd6954c0
|
@ -7,6 +7,10 @@ export default Controller.extend({
|
||||||
this.indexController.send("updateSelectedCategories", category);
|
this.indexController.send("updateSelectedCategories", category);
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
|
updateSelectedTags(tag) {
|
||||||
|
this.indexController.send("updateSelectedTags", tag);
|
||||||
|
return false;
|
||||||
|
},
|
||||||
performSearch(term) {
|
performSearch(term) {
|
||||||
this.indexController.send("performSearch", term);
|
this.indexController.send("performSearch", term);
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<div class="docs">
|
<div class="docs">
|
||||||
{{plugin-outlet name="before-docs-search" args=(hash selectCategory=(action "updateSelectedCategories") tags=indexController.tags )}}
|
{{plugin-outlet name="before-docs-search" args=(hash selectCategory=(action "updateSelectedCategories") selectTag=(action "updateSelectedTags") tags=indexController.tags categories=indexController.categories )}}
|
||||||
{{docs-search
|
{{docs-search
|
||||||
searchTerm=(readonly indexController.searchTerm)
|
searchTerm=(readonly indexController.searchTerm)
|
||||||
onSearch=(action "performSearch")
|
onSearch=(action "performSearch")
|
||||||
|
|
Loading…
Reference in New Issue