How to use the ember-power-select/utils/group-utils.filterOptions function in ember-power-select

To help you get started, we’ve selected a few ember-power-select examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cibernox / ember-power-select-with-create / addon / components / power-select-with-create.js View on Github external
filter(options, searchText) {
    let matcher;
    if (this.searchField) {
      matcher = (option, text) => this.matcher(get(option, this.searchField), text);
    } else {
      matcher = (option, text) => this.matcher(option, text);
    }
    return filterOptions(options || [], searchText, matcher);
  },
github TryGhost / Ghost-Admin / app / components / gh-token-input.js View on Github external
filter(options, searchText) {
        let matcher;
        if (this.searchField) {
            matcher = (option, text) => this.matcher(get(option, this.searchField), text);
        } else {
            matcher = (option, text) => this.matcher(option, text);
        }
        return filterOptions(options || [], searchText, matcher);
    },