Plasma GitLab Archive
Projects Blog Knowledge


[UP]
The UI language
 ui:a
 ui:alist-value and ui:alist-item
 ui:application
 ui:button
 ui:checkbox
 ui:cond
 ui:context
 ui:default
 ui:dialog
 ui:dyn-enum-value and ui:dyn-enum-item
 ui:dynamic
 ui:encode
 ui:enum-value and ui:enum-item
 ui:enumerate
 ui:enumeration and ui:enum
 ui:false
 ui:file
 ui:form
 ui:if
 ui:ifexpr
 ui:iflang
 ui:ifvar
 ui:imagebutton
 ui:iter-*
 ui:iterate
 ui:page
 ui:param
 ui:popup
 ui:radio
 ui:richbutton
 ui:select
 ui:server-popup
 ui:special
 ui:string-value
 ui:template
 ui:text and ui:password
 ui:textarea
 ui:translate
 ui:true
 ui:use
 ui:variable
 t:*, q:*, and p:*
 l:*
 $param
 $[expr]
 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.

Declaration

Level: Control structure

<!ELEMENT ui:default ANY>

<!ATTLIST ui:default
          name     NMTOKEN    #REQUIRED
>
Attributes

  • 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>
  ...
</ui:template>
This web site is published by Informatikbüro Gerd Stolpmann
Powered by Caml