Yii HTML 3.9
Version 3.9 of Yii HTML package is released. There is one improvement:
- added backed enumeration value support to
Html::addCssClass(),Tag::addClass()andTag::class()methods.
Version 3.9 of Yii HTML package is released. There is one improvement:
Html::addCssClass(), Tag::addClass() and Tag::class() methods.Version 3.8 of Yii HTML package is released. There are some improvements:
wrap parameter to BooleanInputTag::label() method that controls whether to wrap input tag with label tag or place them aside;CheckboxList::checkboxLabelWrap() and RadioList::radioLabelWrap() methods;CheckboxList::checkboxWrapTag(), CheckboxList::checkboxWrapAttributes(), CheckboxList::checkboxWrapClass(), CheckboxList::addCheckboxWrapClass(), RadioList::radioWrapTag(), RadioList::radioWrapAttributes(), RadioList::radioWrapClass() and RadioList::addRadioWrapClass();non-empty-string psalm type of Html::generateId() method result;Version 1.2 of Yii Form package is released.
In this version added Checkbox::labelPlacement() method and Checkbox::enclosedByLabel() method marked as deprecated.
Version 1.1 of Yii Form package is released.
In this version added backed enumeration value support to Select field.
Version 3.7 of Yii HTML package is released. There are some improvements:
Script::nonce() and Script::getNonce() for CSP;Select tag.First release of Yii Form package was done. It provides a set of widgets to help with dynamic server-side generation of HTML forms. The following widgets are available out of the box:
Checkbox, CheckboxList, Date, DateTimeLocal, Email, File, Hidden, Image, Number, Password, RadioList, Range, Select, Telephone, Text, Textarea, Time, Url;Button, ResetButton, SubmitButton;ButtonGroup, Fieldset.ErrorSummary.General usage:
use Yiisoft\Form\PureField\Field;
echo Field::text('firstName', theme: 'horizontal')
->label('First Name')
->autofocus();
echo Field::text('lastName', theme: 'horizontal')
->label('Last Name');
echo Field::select('sex')
->label('Sex')
->optionsData(['m' => 'Male', 'f' => 'Female'])
->prompt('—');
echo Field::number('age')
->label('Age')
->hint('Please enter your age.');
echo Field::submitButton('Submit')
->buttonClass('primary');
Version 3.6 of Yii HTML package is released. There are some improvements and fixes:
InvalidArgumentException in Html::renderAttribute() when attribute name is empty or contains
forbidden symbols.Stringable and array values support to textarea tag.CheckboxList and RadioList widgets.null value attributes in Html::renderTagAttributes().Version 3.5 of Yii HTML package is released. There are some improvements:
hr and method Html::hr();aria-describedby attribute.