bootstrap select compoent
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//app/components/bootstrap-input.js | |
import Ember from 'ember'; | |
var _uid = 0; | |
function generateUID() { | |
return ++_uid; | |
} | |
export default Ember.Component.extend({ | |
value: null, | |
classNames: ['form-group', 'bootstrap-input-component'], | |
inputId: Ember.computed(function() { | |
return `bootstrap-input-component-${generateUID()}`; | |
}) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment