If you are working to integrate parsleyjs into your CLI project, here is how I set that up. It has a good number of attributes.
Created initializers/reopen-textfield.js
as:
export default {
name: 'textfield-configuration',
initialize: function() {
Ember.TextField.reopen({
attributeBindings: [
'parsley-type',
'parsley-required-message',
'parsley-type-email-message',
'placeholder'
]
});
}
};
Created initializers/reopen-checkbox.js
as:
export default {
name: 'checkbox-configuration',
initialize: function() {
Ember.Checkbox.reopen({
attributeBindings: [
'parsley-type',
'parsley-required-message',
'parsley-type-email-message',
'parsley-group',
'placeholder'
]
});
}
};
I am using the ember cli project to build my ember application.
Current setup at the time of this post:
DEBUG: -------------------------------
DEBUG: Ember : 1.5.1 vendor.js:15554
DEBUG: Ember Data : 1.0.0-beta.8.2a68c63a vendor.js:15554
DEBUG: Handlebars : 1.3.0 vendor.js:1555
DEBUG: jQuery : 2.1.1
DEBUG: -------------------------------
Ember.LinkView
but it didn't work. For the record, this is what I didjs Ember.LinkView.reopen({ attributeBindings: ['data-toggle'] });
and my template ishtml {{#link-to 'index' class="dropdown-toggle" data-toggle="dropdown"}} Home {{/link-to}}
– Kakalina