Timebox"
From Documentation
Jumperchen (talk | contribs) |
Jumperchen (talk | contribs) |
||
Line 25: | Line 25: | ||
+ | |||
+ | == 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]. | ||
+ | |||
+ | Below is an example of using a within the format. | ||
+ | |||
+ | <source lang="xml"> | ||
+ | <zk> | ||
+ | <window title="Test"> | ||
+ | <timebox cols="20" format="a hh:mm:ss"/> | ||
+ | </window> | ||
+ | </zk></source> | ||
+ | [Since 5.0.0] | ||
=Inherited Functions= | =Inherited Functions= | ||
Please refer to [[ZK_Component_Reference/Base_Components/FormatInputElement| FormatInputElement]] for inherited functions. | Please refer to [[ZK_Component_Reference/Base_Components/FormatInputElement| FormatInputElement]] for inherited functions. | ||
+ | |||
=Supported Events= | =Supported Events= | ||
Revision as of 06:31, 29 November 2010
Timebox
- Demonstration: Date and Time
- Java API: Timebox
- JavaScript API: Timebox
- Style Guide: Timebox
Employment/Purpose
An edit box for holding a time (a java.util.Date Object) , but only Hour & Minute are used.
Example
<window title="Simple" width="300px" border="normal">
<timebox id="tb0"/>
</window>
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 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
None | None |
- Inherited Supported Events: FormatInputElement
Supported Molds
Available molds of a component are defined in lang.xml embedded in zul.jar.
[Since 5.0.0] |
Supported Children
*NONE
Use Cases
Version | Description | Example Location |
---|---|---|
Version History
Version | Date | Content |
---|---|---|