addon/components/ui-dropdown-menu.js

import Ember from 'ember';
import layout from '../templates/components/ui-dropdown-menu';

/**
ui-dropdown-menu component

@module components
@namespace components
@class UiDropdownMenu
@constructor
*/
export default Ember.Component.extend({
    layout: layout,
    /**
     * the component style class
     *
     * @property {String} theme
     * @default 'fluid'
     */
    theme: 'fluid',
    /**
     * the component style class
     *
     * @property {String} class
     */
    class: '',
    classNameBindings: ['_uiClass', 'class', 'theme', '_componentClass'],
    _uiClass: 'ui',
    _componentClass: 'dropdown',
    
    didInsertElement() {
        this.renderDropDown();
    },
    renderDropDown() {
        this.$().dropdown();
    }
});