<fx-fore>

The <fx-fore> element establishes a scope of processing similar to a HTML <form> element. It is a container for all other Fore elements and provides the following facilities:

  • inits a Fore session
  • refreshes the UI
  • global messaging with toast or modal messages

Attributes

NameDescriptiondefault
ignore-expressionsif given is expected to contain a CSS selector that matches element to excluded from Template Expression handling-
[foreign attributes]Foreign attributes are all other attributes being present. These will be copied to the resulting fx-fore element if src is used for loading an external page. These can be accessed with the fore-attr() function-
show-confirmationeither just marker attribute or boolean XPath-
srcurl to load a <fx-fore> element from another HTML file-
strictboolean attribute - if present error messages will be displayed additionally as toast messagesfalse

if show-confirmation is just used as a marker attribute Fore will check whether data fields have been modified after initial loading. Attribute may be empty, the empty string, ’true’ or ‘show-confirmation’.

Likewise when an XPath expression is given as the attribute value it is evaluated to a boolean to decide wether to show the confirmation.

Events

NameDescription
compute-exceptiondispatched in case the dependency graph is cirular
refresh-donedispatched after a refresh() run
readydispatched after Fore has fully been initialized
errordispatches error when template expression fails to evaluate

Examples