Mixin that adds functionality to validation-enabled components. Each of those components use this mixin, and because of this, this mixin is mostly internal to ember-fw. In the app scenario, you should be mostly using the components that are already defined rather than making your own component and using this mixin, but if the situation arises, the following import statement would be used:

import ValidatedInputMixin from '@bennerinformatics/ember-fw/mixins/validated-input';

export default Component.extend(ValidatedInputMixin, {
     // ... your component content here
});

Then all of the properties in this mixin would be available for use in that component.

Show:

disableStyle

Boolean

If true, validation style classes will be skipped


Default: false

focus-out

Action

Action to call when clicking out of the text field

hasError

Computed

This is when the validation has completed checking, but there is an error (ie validations resolved to false). It is an alias of notValidating, showErrorMessage, and validation all of which must be true.

isInvalid

Computed

isValid

Computed

This is an alias that tells us when the validation has completed and is resolved successfully. It is an alias of when validation.isValid, didValidate, and notValidating are all true.

model

DS.Model

Model containing the validations

notValidating

Computed

This is an alias of when validation.isValidating is false.

notValidating

Computed

This is an alias of when validation.isValidating is false. Essentially just an internal property for ease of access.

state

Computed

Determines the current visible state of the field

update

Action

Action to call when the input changes

validation

Unknown private

Current value of the object

value

Unknown private

Current value of the object

valuePath

String

Key being validated by this field