Timebox"

From Documentation
Line 28: Line 28:
 
== Date format ==
 
== Date format ==
  
The ''timebox'' now supports new date formats, for example you can now use a to signify it is am or pm. The input string follows the formatting of the [http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html SimpleDateFormat].
+
Use ''a'' to signify it is ''am'' or ''pm''. The input string follows the formatting of the [http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html SimpleDateFormat].
  
Below is an example of using a within the format.
+
Below is an example of using ''a'' within the format.
  
 
<source lang="xml">
 
<source lang="xml">

Revision as of 06:32, 29 November 2010

Timebox

Employment/Purpose

An edit box for holding a time (a java.util.Date Object) , but only Hour & Minute are used.

Example

ZKCompRef Timebox.png


 <window title="Simple" width="300px" border="normal">
     <timebox id="tb0"/>
 </window>



Date format

Use a to signify it is am or pm. The input string follows the formatting of the SimpleDateFormat.

Below is an example of using a within the format.

<zk>
	<window title="Test">
		<timebox cols="20" format="a hh:mm:ss"/>
	</window>
</zk>
[Since 5.0.0]

Inherited Functions

Please refer to FormatInputElement for inherited functions.

Supported Events

Name
Event Type
None None

Supported Molds

Available molds of a component are defined in lang.xml embedded in zul.jar.

Name
Snapshot
default
Timebox mold default.png
rounded
Timebox mold rounded.png
[Since 5.0.0]

Supported Children

*NONE

Use Cases

Version Description Example Location
     

Version History

Last Update : 2010/11/29


Version Date Content
     



Last Update : 2010/11/29

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.