widget:stopwatch

Purpose

Defines a stopwatch.

Contains

Attribute groups

Actions

Action Description
reset Resets a stopwatch
split Records a lap time and displays it with the stopwatch
start Starts counting time
stop Stops the clock

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:stopwatch</title>
  </head>
  <body>
    <widget:stopwatch id="myStopwatch"/>
    <div>
      <widget:button action="myStopwatch#start">Start</widget:button>
      <widget:button action="myStopwatch#stop">Stop</widget:button>
      <widget:button action="myStopwatch#reset">Reset</widget:button>
      <widget:button action="myStopwatch#split">Split</widget:button>
    </div>
  </body>
</html>

Related topics