ovMatch
Summary
Creates a new Angular directive as an HTML element ov-match to be able to associate a value with a list of values.
Match form element is composed of an input element and an ov-tags element.
Attributes are:
- ov-available-options to define possible values for the ov-tags element (This must be an assignable variable evaluated as an array) e.g. [ { name: 'First name', value: 'firstValue' } { name: 'Second name', value: 'secondValue' } ];
- ov-multiple to authorize multiple association (This must be an assignable variable evaluated as a boolean)
- ov-add-label to set the add button label (This must be an assignable variable evaluated as a string)
- ov-input-placeholder to set the input placeholder (This must be an assignable variable evaluated as a string)
- ov-tags-placeholder to set the ov-tags placeholder (This must be an assignable variable evaluated as a string)
- ov-input-property to set the name of the property used to store the input value (This must be an assignable variable evaluated as a string)
- ov-tags-property to set the name of the property used to store the ov-tags values (This must be an assignable variable evaluated as a string)
Item Index
Methods
Methods
addMatch
Syntax
addMatch
()
Summary
Adds a new match.
removeMatch
Syntax
removeMatch
(
-
index
Summary
Removes a match.
Parameters:
-
index
NumberThe index of the match to remove in the list of matches
updateModel
Syntax
updateModel
()
Summary
Updates model with actual value.