How to use the ember-power-select/components/power-select/trigger.extend 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 miguelcobain / ember-paper / addon / components / paper-select-trigger.js View on Github external
/**
 * @module ember-paper
 */
import { computed } from '@ember/object';

import TriggerComponent from 'ember-power-select/components/power-select/trigger';
import layout from '../templates/components/paper-select-trigger';

/**
 * @class PaperSelectTrigger
 * @extends Ember.Component
 */
export default TriggerComponent.extend({
  layout,
  tagName: 'md-select-value',
  classNames: ['md-select-value'],
  classNameBindings: ['isPlaceholder:md-select-placeholder'],
  isPlaceholder: computed('placeholder', 'label', 'select.selected', function() {
    return (this.get('placeholder') || this.get('label')) && !this.get('select.selected');
  })
});
github miguelcobain / ember-paper / addon / components / paper-select-trigger.js View on Github external
/**
 * @module ember-paper
 */
import Ember from 'ember';
import TriggerComponent from 'ember-power-select/components/power-select/trigger';
import layout from '../templates/components/paper-select-trigger';

const { computed } = Ember;

/**
 * @class PaperSelectTrigger
 * @extends Ember.Component
 */
export default TriggerComponent.extend({
  layout,
  tagName: 'md-select-value',
  classNames: ['_md-select-value'],
  classNameBindings: ['isPlaceholder:_md-select-placeholder'],
  isPlaceholder: computed('placeholder', 'label', 'select.selected', function() {
    return (this.get('placeholder') || this.get('label')) && !this.get('select.selected');
  })
});