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
The property name of the form element's model (by default the model of its parent Components.Form) that this form element should represent. The control element's value will automatically be bound to the model property's value.
Using this property enables form validation on this element.
I haven't had the time yet to go through the tests and see if we have test coverage for it.
The text was updated successfully, but these errors were encountered:
I don't think this is really supported, at least I never had that explicitly in my mind. And I think that supporting that is probably not trivial with validations in mind. Like when using ember-cp-validations and you have an Ember.Objectfoo with the validation mixin, and another nested object with its own validations under the bar property, setting foo.bar would currently not allow us to see the validations defined on bar (when foo is the form's model).
Nevertheless it would be nice to add support for that in the future, but probably that will happen only as part (or thereafter) of a bigger validation API refactoring!?
I'm not sure if I would see missing support in a validation provider plugin as a showstopper. We might support from Ember Bootstrap but it may not be supported by a specific validation provider (or it's plugin).
A consumer may try to use a path as
@property
argument for<BsForm::Element>
. Is this officially supported? Should we support it?It seems to have worked in the past but was broken due to refactoring at least if using
ember-changeset-validations
as validation provider. We started to address it in ember-bootstrap/ember-bootstrap-changeset-validations#28 but more bugs were catched in ember-bootstrap/ember-bootstrap-changeset-validations#30. Before fixing in validation plugin I want to discuss if we have or want to commit to support in Ember Bootstrap itself.It's not covered by current API docs:
I haven't had the time yet to go through the tests and see if we have test coverage for it.
The text was updated successfully, but these errors were encountered: