Purpose
An inline widget element used to display some text content. It may be associated with a
widget property. In such cases, the displayed content represents the value of the selected
property.
You can use the widget:button element, with the action
attribute set to 'clear-value', to clear displayed content.
Attributes
Attribute |
Description |
Type |
Default |
Options |
Use |
content |
Specifies the initially displayed content |
xs:string |
|
|
optional |
property |
Associates a display element with the property of a different element |
xs:string |
|
|
optional |
Action
Action |
Description |
clear-value |
Clears displayed content |
Property
Property |
Description |
Type |
Access |
content |
Contains displayed content. If the widget is associated with a property, the
value of this property is a mirror of the corresponding property value. In such cases it
is not writable. |
xs:string |
read/write |
Example
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/2002/06/xhtml2"
xmlns:widget="http://www.volantis.com/xmlns/2006/05/widget">
<head>
<title>widget:display</title>
</head>
<body>
<div>
<widget:display content="Hello world"/>
</div>
</body>
</html>