Skip to main content

Resources

Named resource container. A resource can be a string, boolean, number, binary, or a generic Resource, accessed through {Resources.Name}.

Signature

Child elements

The Text attribute is equivalent to the tag body:

Runtime behavior

  • String → string
  • Bool → true when Text/body is True / true
  • Number → Number
  • Binary → produces a blob URL that can be passed to Image / Media directly
  • Resource Type="Json" → JSON parse
  • Resource Type="Page" → stores a node tree used through Content="{PageName}"; see Page system
  • Resource names are unique within a widget; duplicates fail to parse

Example

Gotchas

  • Base64 in Binary inflates the XML size; use Data Type="Binary" for large files instead of resource literals.
  • Resources are static values and cannot be updated at runtime.
  • Resource Type supports String / Bool / Number / Binary / Json.