date_picker() html()
Deprecated: a read-only text field with the jQuery UI datepicker (Y-m-d). Use form()->datetime_select().
html()->date_picker($name, $cur_date = '', $extra = [])Options
| Option | Meaning |
|---|---|
$name, $cur_date | Name; value Y-m-d. |
id | Default date_picker_<n>. |
Example
Code
return html()->date_picker('input_name', '2015-02-02');Notes
- Deprecated since 3.9.0 in favour of form()->datetime_select() (eonasdan, flatpickr, Tempus Dominus or native inputs,
form2_datetime::$PICKER). It keeps working and logs nothing; no removal date is set. - Legacy: it asks cdnjs for the jQuery UI 1.10.4 datepicker stylesheet, which no longer exists there. New code uses form()->datetime_select() or a native date().
See also: form/datetime_select