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
// Select box utilizing Select2 functionality that overrides Ember.Select; | |
// Define view in the same way that you would an Ember.Select view. | |
// Additional attributes supported are: width, allowClear, and closeOnSelect; | |
// Example view: | |
// {{ view App.Select2 | |
// viewName="fieldValueSelect2" | |
// prompt="Please select a value list" | |
// contentBinding="controller.fieldValuesLists" | |
// optionLabelPath="content.name" | |
// optionValuePath="content.id" |
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
// Mixin to generalize model create/edit functionality | |
// for use in controllers. Typical use in route: | |
// Vilio.PortfolioEditRoute = Ember.Route.extend({ | |
// // create transaction and add model to it | |
// setupController: function(controller, model) { | |
// this._super(controller, model); | |
// this.store.transaction().add(model); | |
// }, | |
// events: { | |
// cancel: function() { |