Plasma GitLab Archive
Projects Blog Knowledge

The UI language
 ui:alist-value and ui:alist-item
 ui:dyn-enum-value and ui:dyn-enum-item
 ui:enum-value and ui:enum-item
 ui:enumeration and ui:enum
 ui:text and ui:password
 t:*, q:*, and p:*
 Dot notation (v1.v2)
The element ui:default

The element can be used at the beginning of ui:page and ui:template to define default values for template parameters that are not passed to the template.


Level: Control structure

<!ELEMENT ui:default ANY>

<!ATTLIST ui:default
          name     NMTOKEN    #REQUIRED

  • name: The name of the parameter

Sub elements

All page body elements may occur in ui:default.

Known Bug

Template parameters inside ui:default are currently not expanded. This is likely to change in the future.

Example that does not work yet:

<ui:template name="foo" from-caller="a b">
  <ui:default name="a">44</ui:default>
  <ui:default name="b">$a + $a = 88</ui:default>
This web site is published by Informatikbüro Gerd Stolpmann
Powered by Caml