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 elements ui:dyn-enum-value and ui:dyn-enum-item

The element ui:dyn-enum-value represents a literal for dynamic enumerators that can be used to set the initial value of a ui:variable. The element ui:dyn-enum-item represents one enumerated item.

Declaration

Level: Dialog structure

<!ELEMENT ui:dyn-enum-value (ui:dyn-enum-item)* >

<!ELEMENT ui:dyn-enum-item EMPTY>

<!ATTLIST ui:dyn-enum-item
          internal  NMTOKEN  #REQUIRED
          external  CDATA    #IMPLIED >
Attributes

  • internal: The internal value identifying the enumerated item

  • external: The corresponding external value for display purposes. If omitted, the internal value is also used as external value.

Example

<ui:variable name="preference" type="dynamic-enumerator">
  <ui:dyn-enum-value>
    <ui:dyn-enum-item internal="orange" external="I like oranges"/>
    <ui:dyn-enum-item internal="banana" external="I like bananas"/>
  </ui:dyn-enum-value>
</ui:variable>
This web site is published by Informatikbüro Gerd Stolpmann
Powered by Caml