Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

Latest commit

 

History

History
45 lines (33 loc) · 1.14 KB

README.md

File metadata and controls

45 lines (33 loc) · 1.14 KB

ZK 3/6.5/7 Persian Date Picker

Contributors

I'd like to thank Shahab NasrollahZadeh Mehrabadi for his contribution on ZK 6.5/7

Omid Pourhadi

=== How to use

  • copy ZkPersianDatePicker.jar (zk3)/ persiandatebox (zk6.5/7) in your project library (CLASSPATH)
<?page title="ZK Persian Date Picker"?>
<window position="center,top" title="ZK Persian Date Picker!!" border="normal"
width="750px" height="750px">
<label value="You are using zk version : ${desktop.webApp.version}"/>
<PersianDateBox id="pdt" >
<attribute name="onChange">
lblDate.setValue(pdt.getValue().toString());
lblSolarDate.setValue(pdt.getValueAsSolar());
</attribute>
</PersianDateBox>
<button label="Click To Pick A Date">
<attribute name="onClick">
lblDate.setValue(pdt.getValue().toString());
lblSolarDate.setValue(pdt.getValueAsSolar());
</attribute>
</button>
<label id="lblDate" ></label>
<label id="lblSolarDate"></label>
</window>

Note

  • onChange attribute on PersianDatePicker only works with zk 3.6.3 for more information about methods please visit java docs. source code also is available in jar files.