-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from DevChu/F80-ZK-2707
ZK-2707: Add a timepicker component
- Loading branch information
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<zk> | ||
<zscript><![CDATA[ | ||
import java.util.Calendar; | ||
import java.util.Date; | ||
|
||
Date time = new Date(); | ||
Calendar calendar = Calendar.getInstance(); | ||
calendar.setTime(new Date()); | ||
calendar.set(0, 0, 0, 10, 10); | ||
Date min = calendar.getTime(); | ||
calendar.set(0, 0, 0, 12, 10); | ||
Date max = calendar.getTime(); | ||
]]></zscript> | ||
<vlayout> | ||
<hlayout> | ||
<label value="HH:mm" /> | ||
<timepicker format="HH:mm" value="${time}" width="200px"/> | ||
</hlayout> | ||
<hlayout> | ||
<label value="HH:mm a" /> | ||
<timepicker format="HH:mm a" value="${time}" min="${min}" width="200px" interval="3600" /> | ||
</hlayout> | ||
<hlayout> | ||
<label value="HH:mm:ss" /> | ||
<timepicker format="HH:mm:ss" value="${time}" min="${min}" max="${max}" width="200px" interval="3600" /> | ||
</hlayout> | ||
<hlayout> | ||
<label value="HH:mm:ss a" /> | ||
<timepicker format="HH:mm:ss a" value="${time}" width="200px"/> | ||
</hlayout> | ||
<hlayout> | ||
<label value="hh:mm:ss a" /> | ||
<timepicker format="hh:mm:ss a" value="${time}" width="200px"/> | ||
</hlayout> | ||
</vlayout> | ||
</zk> |