Skip to content

Commit

Permalink
Update _index.md
Browse files Browse the repository at this point in the history
  • Loading branch information
JoernT authored Jan 27, 2024
1 parent 78a35b4 commit 09b6c6c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions content/elements/model/instance/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 `<fx-instance>` that instance is shared with nested `<fx-fore>` 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

Expand Down

0 comments on commit 09b6c6c

Please sign in to comment.