Merge pull request #1289 from ing-bank/chore/modelValueMeta
chore: docs for model-value-changed meta
This commit is contained in:
commit
eb63d6cc52
1 changed files with 10 additions and 0 deletions
|
|
@ -22,3 +22,13 @@ level, via:
|
||||||
> recommended as a means of interaction.
|
> recommended as a means of interaction.
|
||||||
|
|
||||||
For more information about parsing and the Unparseable type, see [Formatting and Parsing](../../../docs/systems/form/formatting-and-parsing.md)
|
For more information about parsing and the Unparseable type, see [Formatting and Parsing](../../../docs/systems/form/formatting-and-parsing.md)
|
||||||
|
|
||||||
|
### Event meta
|
||||||
|
|
||||||
|
`model-value-changed` events have a `detail` object, containing the following meta data:
|
||||||
|
|
||||||
|
- `isTriggeredByUser`: a boolean that determines whether a change originated
|
||||||
|
from a user or was triggered programmatically
|
||||||
|
- `formPath`: an array of FormControls. It contains the path an event follows to go from a 'leaf
|
||||||
|
element' (for instance a lion-input) to a top element (for instance lion-form). An example path
|
||||||
|
could be [lionForm, lionFieldset, lionInput]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue