From 09b6c6cbe45509135c60c3f87c183c16d24b340b Mon Sep 17 00:00:00 2001 From: Joern Turner Date: Sat, 27 Jan 2024 15:35:26 +0100 Subject: [PATCH] Update _index.md --- content/elements/model/instance/_index.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/content/elements/model/instance/_index.md b/content/elements/model/instance/_index.md index 2450f0b5..51dad3c0 100644 --- a/content/elements/model/instance/_index.md +++ b/content/elements/model/instance/_index.md @@ -17,11 +17,20 @@ necessary. |------|-------------|------- | | credentials | sets credentials policy - one of 'omit', 'same-origin' or 'include' | same-origin | | id | id of the instance for addressing in refs | default | +| shared | boolean attribute to signal that the instance is shared with nested Fore elements | | | src | url to load instance from via http get | | | type | 'xml' or 'json' or 'html' are supported by now | xml | | xpath-default-namespace | namespace to be used with unprefixed XPathes | emtpy | +## Shared instances + +By adding an `shared` attribute to an `` that instance is shared with nested `` elements and can be accessed and mutated as usual. + +This can be used if multiple nested Fore elements represent different views but you want to share some common data. + +Another possible use case is to separate the model from the UI part and put them in different files for dynamic assembly at runtime (see documentation under 'modularization'). + ## URI Schemes