You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This extremely simple change would allow support for disabled em-text boxes. I was going to generate a pull request but I think it'd be easier to just add them yourself. If not, I'm happy to fork it and make the request! All that needs to be changed is addon/text.js to:
importEmfrom'ember';importFormGroupComponentfrom'./group';importControlMixinfrom'ember-idx-forms/mixins/control';/*Form InputSyntax:{{em-text property="property name" rows=4}} */exportdefaultFormGroupComponent.extend({controlView: Em.TextArea.extend(ControlMixin,{attributeBindings: ['placeholder'],placeholder: Em.computed.alias('parentView.placeholder'),model: Em.computed.alias('parentView.model'),propertyName: Em.computed.alias('parentView.propertyName'),rows: Em.computed.alias('parentView.rows'),// ADDED A COMMA (duh)disabled: Em.computed.alias('parentView.disabled')// ADDED THIS LINE}),property: void0,label: void0,placeholder: void0,rows: 4,disabled: void0,// ADDED THIS LINEcontrolWrapper: (function(){if(this.get('form.form_layout')==='horizontal'){return'col-sm-10';}returnnull;}).property('form.form_layout')});
The text was updated successfully, but these errors were encountered:
This extremely simple change would allow support for disabled
em-text
boxes. I was going to generate a pull request but I think it'd be easier to just add them yourself. If not, I'm happy to fork it and make the request! All that needs to be changed isaddon/text.js
to:The text was updated successfully, but these errors were encountered: