Skip to content

Releases: yiisoft/html

Version 3.9.0

29 Nov 08:46
3.9.0
037b125
Compare
Choose a tag to compare
  • Enh #230: Add backed enumeration value support to Html::addCssClass(), Tag::addClass() and Tag::class()
    methods (@terabytesoftw)

Version 3.8.0

29 Oct 08:10
3.8.0
e550e78
Compare
Choose a tag to compare
  • New #224: Add optional wrap parameter to BooleanInputTag::label() method that controls whether to wrap input tag
    with label tag or place them aside (@vjik)
  • New #225: Add CheckboxList::checkboxLabelWrap() and RadioList::radioLabelWrap() methods (@vjik)
  • New #227, #228: Add 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() (@vjik)
  • Enh #220: Add non-empty-string psalm type of Html::generateId() method result (@vjik)
  • Enh #220: Add non-empty-string|null psalm type of Tag::id() method parameter (@vjik)
  • Enh #222: Bump minimal PHP version to 8.1 and refactor (@vjik)

Version 3.7.0

18 Sep 11:49
3.7.0
968aa8b
Compare
Choose a tag to compare
  • New #218: Add methods Script::nonce() and Script::getNonce() for CSP (@Gerych1984, @vjik)
  • Enh #219: Add backed enumeration value support to Select tag (@vjik)

Version 3.6.0

23 Aug 08:14
3.6.0
efd53b3
Compare
Choose a tag to compare
  • Enh #212: Throw InvalidArgumentException in Html::renderAttribute() when attribute name is empty or contains
    forbidden symbols (@es-sayers, @vjik)
  • Enh #214: Add Stringable and array values support to textarea tag (@vjik)
  • Enh #217: Add backed enumeration value support to CheckboxList and RadioList widgets (@vjik)
  • Bug #208: Fix output of null value attributes in Html::renderTagAttributes() (@es-sayers)

Version 3.5.0

11 Jul 08:10
3.5.0
33d23d3
Compare
Choose a tag to compare
  • New #192: Add class for tag hr and method Html::hr() (@abdulmannans)
  • Enh #200: Add support for multiple elements in aria-describedby attribute (@arogachev)

Version 3.4.0

26 Dec 13:19
3.4.0
9cdc632
Compare
Choose a tag to compare
  • New #182: Add ability set attributes for label of items in widgets CheckboxList and RadioList (@vjik)

Version 3.3.0

01 Dec 08:05
3.3.0
0181862
Compare
Choose a tag to compare
  • New #173: Add class for tag html and method Html::html() (@dood-)
  • Chg #179: Replace constant PHP_EOL to "\n" (@vjik)
  • Enh #180: Don't add "class" attribute in Html::addCssClass() if passed array contains null classes only (@vjik)

Version 3.2.0

21 Nov 06:51
3.2.0
f318684
Compare
Choose a tag to compare
  • New #174: Add $attributes parameter to Html::ul() and Html::ol() (@AmolKumarGupta)
  • Enh #176: Allow pass null as class to Html::addCssClass(), nulled classes will be ignored (@vjik)
  • Bug #171: Fix loss of keys for named class in Html::addCssClass() when class in passed options is a string (@vjik)

Version 3.1.0

17 Jan 08:25
3.1.0
384ffe3
Compare
Choose a tag to compare
  • New #137: Add $attributes parameter to Html::img() (@alien-art)
  • New #150: Add class for tag small and method Html::small() (@dood-)
  • Enh #153: Add support of yiisoft/arrays version ^3.0 (@vjik)

Version 3.0.0

06 Nov 18:27
3.0.0
fb49605
Compare
Choose a tag to compare
  • New #139: Add loading() method to Img tag (@jacobbudin)
  • Chg #135: Raise yiisoft/arrays version to ^2.0 (@vjik)
  • Chg #136: Remove Tag::class() and rename Tag::replaceClass() to Tag::class() (@vjik)
  • Chg #140: Remove Html::fileInput() and Input::file(), rename Input::fileControl() to Input::file() (@vjik)
  • Chg #141: Tag class: remove attributes() method and rename replaceAttributes() to attributes() (@vjik)
  • Chg #141: Range class: remove outputAttributes() method and rename replaceOutputAttributes()
    to outputAttributes() (@vjik)
  • Chg #141: File class: remove uncheckInputAttributes() method and rename replaceUncheckInputAttributes()
    to uncheckInputAttributes() (@vjik)
  • Chg #141: ButtonGroup class: remove buttonAttributes() method and rename replaceButtonAttributes()
    to buttonAttributes() (@vjik)
  • Chg #141: CheckboxList: remove individualInputAttributes() and checkboxAttributes() methods,
    rename replaceIndividualInputAttributes() to individualInputAttributes() and replaceCheckboxAttributes()
    to checkboxAttributes() (@vjik)
  • Chg #141: RadioList class: remove individualInputAttributes() and radioAttributes() methods,
    rename replaceIndividualInputAttributes() to individualInputAttributes() and replaceRadioAttributes()
    to radioAttributes() (@vjik)
  • Enh #133: Raise minimum PHP version to 8.0 and refactor code (@xepozz, @vjik)
  • Enh #142: Make NoEncodeStringableInterface extend from Stringable interface (@vjik)
  • Enh #143: Minor type hinting improvements (@vjik)
  • Bug #143: Fix a typo in the message of exception that thrown on invalid buttons' data in ButtonGroup widget (@vjik)