indexiatech / ember-forms

Smart, Intuitive forms for Ember.js styled with Bootstrap, Multi layouts and Validation support.
http://indexiatech.github.io/ember-forms
Apache License 2.0
218 stars 45 forks source link

propertyIsModel attribute added for em-select #74

Closed jackmatt2 closed 9 years ago

jackmatt2 commented 9 years ago

73 #72

new attribute for {{em-select}}

            {{em-select
            label="Employee"
            property="employee"
            propertyIsModel=true
            content=employees
            optionValuePath="content.id"
            optionLabelPath="content.name"
            disabled=false
            prompt="Please Select"
            }}

Now the employee object will bind to the actual employee model not the id.

pedrokiefer commented 9 years ago

This patch works fine, solved my issue with selecting multiple values. I think it should be merged.

asaf commented 9 years ago

Pushed.