Last active
August 29, 2015 14:13
-
-
Save jvenator/b4dfde9e145f48f89489 to your computer and use it in GitHub Desktop.
register a custom ember easyForm form wrapper in Ember-CLI app
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
... | |
// ember-easyForm wrapper | |
app.import('vendor/form-wrapper-file.js'); | |
... |
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
// located at /vendor/form-wrapper-file.js | |
Ember.EasyForm.Config.registerWrapper('bs-wrapper-horizontal', { | |
formClass: 'form-horizontal', | |
labelClass: 'label-control' | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can't figure out how to pass a class value to the actual input rather than the wrapping div. I've tried everything I can think of:
inputFieldClass:
,fieldClass:
,inputTemplateClass:
, etc.inputClass: 'form-control'
results in the following (leaving out injected ember attributes).What I want is...