Skip to content

Instantly share code, notes, and snippets.

@allthesignals
Created July 6, 2018 15:01
Show Gist options
  • Select an option

  • Save allthesignals/9e7c35ccf3b84950e06022e14d7daae0 to your computer and use it in GitHub Desktop.

Select an option

Save allthesignals/9e7c35ccf3b84950e06022e14d7daae0 to your computer and use it in GitHub Desktop.
{{#filter-section
filterTitle='Borough / Block'
appliedFilters=applied-filters
filterNames=(array 'boroughs' 'block')
mutateArray=(action 'mutateArray')
as |section|
}}
<ul class="menu vertical medium-horizontal stage-checkbox">
{{#each (array 'Citywide' 'Manhattan' 'Bronx' 'Brooklyn' 'Queens' 'Staten Island') as |type|}}
<li {{action section.delegate-mutation (action 'mutateArray' 'boroughs' type)}}>
<a>
{{filter-checkbox
value=type
currentValues=boroughs
classPrefix="borough"
}}
</a>
</li>
{{/each}}
</ul>
<input
class="filter-text-input"
type="text"
value={{block}}
placeholder="Block Number (e.g. '1000')"
oninput={{action section.delegate-mutation (action 'setDebouncedText' 'block')}}>
{{/filter-section}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment