/** * @param string control name * @param string label * @param int width of the control * @param int maximum number of characters the user may enter */ public function __construct($label = NULL, $cols = NULL, $maxLength = NULL) { parent::__construct($label, $cols, $maxLength); $this->format = static::$dateFormat; $this->control->class[] = 'datetimepicker'; $this->control->data('date-format', static::$jsFormat); }
/** * @param string control name * @param string label * @param int width of the control * @param int maximum number of characters the user may enter */ public function __construct($label = NULL, $cols = NULL, $maxLength = NULL) { parent::__construct($label, $cols, $maxLength); $this->control->type = "datetime"; $this->control->data('nella-forms-date', $this->translateFormatToJs(static::$dateFormat)); $this->control->data('nella-forms-time', $this->translateFormatToJs(static::$timeFormat)); }