User tests: Successful: Unsuccessful:
JHtml::calendar helper method
unlilke the calendar form field via XML definition
does not support usage of minYear, maxYear (relative to current) year limitations
$attribs = array(
'minYear'=>'-4',
'maxYear'=>'4'
);
echo JHtml::_('calendar', $datevalue='',
$fieldname='test', $elementid='test',
$date_time_format='', $attribs);
Should limit year selection to 2014 to 2022
No such limitation
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
what you are reporting is not related to this PR
this PR does not try to modify or fix JS behaviour of the calendar
this PR is adding the minyear and maxyear options to the JHtml::calendar helper method, like they exist in form element defined in XML files of forms
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-03-17 15:30:58 |
Closed_By | ⇒ | mbabker | |
Labels |
Added:
?
|
I have tested this item✅ successfully on 36aa046
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/19847.