widget:folding-item

Purpose

Outer container for a Folding Item widget that displays a summary of its contents, and when activated, reveals more detailed content.

Contained by

Contains

Attribute groups

Attribute

Attribute Description Type Default Options Use
ref Identifies an anchor element in the document. Please note that the value of the attribute must be prefixed with '#'. When the user unfolds the widget, the page will be scrolled to the selected element. xs:string     optional 

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:folding-item</title>
  </head>
  <body>
    <widget:folding-item>
      <widget:summary>List of cities</widget:summary>
      <widget:detail>
        <ul>
          <li><a href="http://www.ankara-bel.gov.tr">Ankara</a></li>
          <li><a href="http://www.berlin.de">Berlin</a></li>
          <li><a href="http://www.budapest.hu">Budapest</a></li>
          <li><a href="http://www.krakow.pl">Cracow</a></li>
        </ul>
      </widget:detail>
    </widget:folding-item>
  </body>
</html>

Related topics