widget:table

Purpose

Defines a Table widget.

Contains

Attribute groups

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:table</title>
  </head>
  <body>
    <widget:table>
      <thead>
        <tr>
          <th>Code</th>
          <th>Country name</th>
        </tr>
      </thead>
      <widget:tbody id="tbody" style="mcs-table-rows-per-page:10; color: #fff;">
        <widget:load src="http://localhost:8080/mcs/projects/client-app/service/table" when="onload"/>
        <tr style="background-color:#fff">
          <td>--</td>
          <td>Loading, please wait...</td>
        </tr>
      </widget:tbody>
    </widget:table>
    <div>
      <widget:button action="tbody#first-page">&lt;&lt;&lt;</widget:button>
      <widget:button action="tbody#previous-page">&lt;&lt;</widget:button>
      <widget:button action="tbody#previous-row">&lt;</widget:button> From <widget:display
        property="tbody#start-row-number"/> to <widget:display property="tbody#end-row-number"/> of
      <widget:display property="tbody#rows-count"/>
      <widget:button action="tbody#next-row">&gt;</widget:button>
      <widget:button action="tbody#next-page">&gt;&gt;</widget:button>
      <widget:button action="tbody#last-page">&gt;&gt;&gt;</widget:button>
    </div>
  </body>
</html>

Related topics