Server IP : 85.214.239.14 / Your IP : 18.221.97.20 Web Server : Apache/2.4.62 (Debian) System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.18 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /srv/modoboa/instance/sitestatic/eonasdan-bootstrap-datetimepicker/docs/ |
Upload File : |
## Events ### dp.hide Fired when the widget is hidden. Parameters: ``` e = { date //the currently set date. Type: moment object (clone) } ``` Emitted from: * toggle() * hide() * disable() ---------------------- ### dp.show Fired when the widget is shown. Parameters: No parameters are include, listen to `dp.change` instead Emitted from: * toggle() * show() ---------------------- ### dp.change Fired when the date is changed, including when changed to a non-date (e.g. When keepInvalid=true). Parameters: ``` e = { date, //date the picker changed to. Type: moment object (clone) oldDate //previous date. Type: moment object (clone) or false in the event of a null } ``` Emitted from: * toggle() **Note**: Only fired when using `useCurrent` * show() **Note**: Only fired when using `useCurrent` or when or the date is changed to comply with date rules (min/max etc) * date(newDate) * minDate(minDate) * maxDate(maxDate) * daysOfWeekDisabled() ---------------------- ### dp.error Fired when a selected date fails to pass validation. Parameters: ``` e = { date //the invalid date. Type: moment object (clone) oldDate //previous date. Type: moment object (clone) or false in the event of a null } ``` Emmited from: * minDate(minDate) * maxDate(maxDate) * daysOfWeekDisabled() * setValue() *private function* ---------------------- ### dp.update <small>4.14.30</small> Fired (in most cases) when the `viewDate` changes. E.g. Next and Previous buttons, selecting a year. Parameters: ``` e = { change, //Change type as a momentjs format token. Type: string e.g. yyyy on year change viewDate //new viewDate. Type: moment object } ```