Цю сторінку ще не перекладено українською, тому нижче англійська версія.

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 = [])

Опції

ОпціяЗначення
$name, $cur_dateName; value Y-m-d.
idDefault date_picker_<n>.

Приклад

Код

return html()->date_picker('input_name', '2015-02-02');

Примітки

  • 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().

Див. також: form/datetime_select