diff options
author | Fabio Bas <ctrlaltca@gmail.com> | 2015-01-20 23:42:12 +0100 |
---|---|---|
committer | Fabio Bas <ctrlaltca@gmail.com> | 2015-01-20 23:42:12 +0100 |
commit | ca22da21b0cedab985e698f4dedf3ac1158a1487 (patch) | |
tree | a20472bc56644eea7b98aeaadb851ad29fe3dc1a /framework/Web/UI/WebControls/TDatePickerClientScript.php | |
parent | ab5b3b30e2fc7e1ef60cb5ead102f48d8ec1aa84 (diff) |
one class per file: framework/Web/UI/WebControls
Diffstat (limited to 'framework/Web/UI/WebControls/TDatePickerClientScript.php')
-rw-r--r-- | framework/Web/UI/WebControls/TDatePickerClientScript.php | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/framework/Web/UI/WebControls/TDatePickerClientScript.php b/framework/Web/UI/WebControls/TDatePickerClientScript.php new file mode 100644 index 00000000..67fe7b95 --- /dev/null +++ b/framework/Web/UI/WebControls/TDatePickerClientScript.php @@ -0,0 +1,46 @@ +<?php +/** + * TDatePicker class file. + * + * @author Wei Zhuo <weizhuo[at]gmail[dot]com> + * @link http://www.pradosoft.com/ + * @copyright Copyright © 2005-2014 PradoSoft + * @license http://www.pradosoft.com/license/ + * @package System.Web.UI.WebControls + */ + +/** + * TDatePickerClientScript class. + * + * Client-side date picker event {@link setOnDateChanged OnDateChanged} + * can be modified through the {@link TDatePicker::getClientSide ClientSide} + * property of a date picker. + * + * The <tt>OnDateChanged</tt> event is raise when the date picker's date + * is changed. + * The formatted date according to {@link TDatePicker::getDateFormat DateFormat} is sent + * as parameter to this event + * + * @author Wei Zhuo <weizhuo[at]gmail[dot]com> + * @package System.Web.UI.WebControls + * @since 3.0.4 + */ +class TDatePickerClientScript extends TClientSideOptions +{ + /** + * Javascript code to execute when the date picker's date is changed. + * @param string javascript code + */ + public function setOnDateChanged($javascript) + { + $this->setFunction('OnDateChanged', $javascript); + } + + /** + * @return string javascript code to execute when the date picker's date is changed. + */ + public function getOnDateChanged() + { + return $this->getOption('OnDateChanged'); + } +}
\ No newline at end of file |