2024-10-29 381次浏览

Yii HTML的3.8版本包发布了。有一些改进:

  • added optional wrap parameter to BooleanInputTag::label() method that controls whether to wrap input tag with label tag or place them aside;
  • added CheckboxList::checkboxLabelWrap() and RadioList::radioLabelWrap() methods;
  • added ability to wrap items in checkbox and radio lists by using methods CheckboxList::checkboxWrapTag() , CheckboxList::checkboxWrapAttributes() , CheckboxList::checkboxWrapClass() , CheckboxList::addCheckboxWrapClass() , RadioList::radioWrapTag() , RadioList::radioWrapAttributes() , RadioList::radioWrapClass() and RadioList::addRadioWrapClass() ;
  • added non-empty-string psalm type of Html::generateId() method result;
  • added non-empty-string|null psalm type of Tag::id() method parameter;
  • bumped minimal PHP version to 8.1 and refactor.