BellGasp/ember-table-data

View on GitHub
addon/templates/components/core/filter/filter-row/comparator.hbs

Summary

Maintainability
Test Coverage
{{#if (has-block)}}
  {{yield filteredComparators filterRowObject.comparator }}
{{else}}
  {{#power-select
      selected=filterRowObject.comparator
      options=filteredComparators
      onchange=(action (mut filterRowObject.comparator))
      class="comparator-selector"
      searchField="label"
      tagName="div"
      as |comparator|
  }}
    {{get comparator "label"}}
  {{/power-select}}
{{/if}}