How to use the ember-flexberry/components/flexberry-dropdown.extend function in ember-flexberry

To help you get started, we’ve selected a few ember-flexberry 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 Flexberry / ember-flexberry-designer / addon / components / fd-tab-dropdown.js View on Github external
import Ember from 'ember';
import FlexberryDropdown from 'ember-flexberry/components/flexberry-dropdown';
import layout from '../templates/components/fd-tab-dropdown';

export default FlexberryDropdown.extend({
  layout,
  dynamicChange: true,

  _items: Ember.computed('items.[]', function() {
    let items = this.get('items');
    let obj = null;

    if (Ember.isArray(items)) {
      obj = {};
      items.forEach(item => obj[item.dataTab] = item.title);
    }

    return obj || items;
  }),

  actions: {