From fe720e194c068234b44c7065389f8b88bafe1d44 Mon Sep 17 00:00:00 2001 From: Thijs Louisse Date: Thu, 25 Mar 2021 00:20:21 +0100 Subject: [PATCH] chore: docs for model-value-changed meta --- docs/docs/systems/form/model-value.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/docs/systems/form/model-value.md b/docs/docs/systems/form/model-value.md index a97eb8808..4e8d62a94 100644 --- a/docs/docs/systems/form/model-value.md +++ b/docs/docs/systems/form/model-value.md @@ -22,3 +22,13 @@ level, via: > 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) + +### 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]