XFA Specification
Chapter 15, Template Specification
Template Reference
488
The defaultUi element
An element for widgets whose depiction is delegated to the XFA application.
<defaultUi
Properties:
id="xml-id"
use="cdata"
usehref="cdata"
>
<extras>
[0..1]
</defaultUi>
The defaultUi element is used within the following other elements:
proto ui
When the depiction of the widget is defaulted this element is used. In this mode the appearance and
interaction of the widget is determined by examining the content of the field. For example, if the content
is a number then a numeric editing widget is used. This element can also supply additional hints to a
custom GUI via its
extras
child.
The extras property
An enclosure around one or more sets of custom properties. The content of this element may be used by
custom applications.
For more information see "The
The id property
A unique identifier that may be used to identify this element as a target.
The use property
Invokes another object in the same document as a prototype for this object. The content of this property is
either a SOM expression (which cannot start with '#') or a '#' character followed by an XML ID.
Starting with XFA 2.4 the object used as a prototype no longer needs to be the child of
proto
. Any object
of the appropriate class can be used as a prototype.
If both
use
and
usehref
are non-empty
usehref
takes precedence.
The usehref property
Invokes an external object as a prototype for this object. The content of this property is an URL, followed
by '#', followed by either an XML ID or by som(SOM_expr) where
SOM_expr
represents a SOM expression.
The XML ID or SOM expression is resolved in the context of the external document.
If both
use
and
usehref
are non-empty
usehref
takes precedence.