Skip to content

Support single-select dropdown where filter keys are different #3

@wcurtis

Description

@wcurtis

Problem

We've got a dropdown that should be single select, but the specific filters have different keys (is_guest=true, and is_member=true, etc).

Proposed soln

Add a new action in https://github.com/wcurtis/ember-list-card/blob/master/addon/components/list-card.js

Currently we have 3 actions the dropdown filter can call:

  • addQueryToken
  • removeQueryToken
  • replaceQueryToken

A new one that lets dropdown specifiy which tokens to add AND remove at once could work

  • addAndRemoveQueryTokens(tokensToAdd, tokensToRemove)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions