UNPKG

@alihbuzaid/ember-ui

Version:

Fleetbase UI provides all the interface components, helpers, services and utilities for building a Fleetbase extension into the Console.

23 lines (17 loc) 530 B
import Component from '@glimmer/component'; import { tracked } from '@glimmer/tracking'; import { action } from '@ember/object'; export default class FilterCountryComponent extends Component { @tracked value; constructor() { super(...arguments); this.value = this.args.value; } @action onChange(selection) { const { onChange, filter } = this.args; this.value = selection; if (typeof onChange === 'function') { onChange(filter, selection); } } }