Make keep typing dropdown item static

This commit is contained in:
Clement Ho 2016-12-06 15:13:31 -06:00
parent 5cd90ef948
commit 00ed5aafd2
2 changed files with 15 additions and 12 deletions

View file

@ -3,10 +3,6 @@
((global) => {
const dropdownData = [{
icon: 'fa-search',
hint: 'Keep typing and press Enter',
tag: '',
},{
icon: 'fa-pencil',
hint: 'author:',
tag: '<author>'

View file

@ -16,7 +16,14 @@
= icon('filter')
%button.clear-search.hidden{ type: 'button' }
= icon('times')
%ul#js-dropdown-hint.dropdown-menu.hint-dropdown{ 'data-dynamic' => true }
#js-dropdown-hint.dropdown-menu.hint-dropdown
%ul
%li.filter-dropdown-item{ 'data-value': 'none' }
%button.btn.btn-link
= icon('search')
%span
Keep typing and press Enter
%ul.filter-dropdown{ 'data-dynamic' => true }
%li.filter-dropdown-item
%button.btn.btn-link
%i.fa{ 'class': '{{icon}}'}