Skip to content

Commit

Permalink
Add addAttributes() and deprecate attributes() (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik committed Jul 9, 2022
1 parent e38d7ca commit 79a53a9
Show file tree
Hide file tree
Showing 21 changed files with 215 additions and 112 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,12 @@

## 2.4.1 under development

- New #122: Add `Tag::addAttributes()`, `ButtonGroup::addButtonAttributes()`, `RadioList::addRadioAttributes()`,
`RadioList::addIndividualInputAttributes()`, `CheckboxList::addCheckboxAttributes()`,
`CheckboxList::addIndividualInputAttributes()`, `File::addUncheckInputAttributes()`, `Range::addOutputAttributes()` and
deprecate `Tag::attributes()`, `ButtonGroup::buttonAttributes()`, `RadioList::radioAttributes()`,
`RadioList::individualInputAttributes()`, `CheckboxList::checkboxAttributes()`,
`CheckboxList::individualInputAttributes()`, `File::uncheckInputAttributes()`, `Range::outputAttributes()` (@vjik)
- New #123: Add `Tag::addClass()` and deprecate `Tag::class()` (@vjik)
- New #129: Add methods `enctypeApplicationXWwwFormUrlencoded()`, `enctypeMultipartFormData()` and `enctypeTextPlain()`
to `Form` tag class (@vjik)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -170,7 +170,7 @@ echo \Yiisoft\Html\Widget\ButtonGroup::create()
\Yiisoft\Html\Html::resetButton('Send'),
)
->containerAttributes(['class' => 'actions'])
->buttonAttributes(['form' => 'CreatePost']);
->replaceButtonAttributes(['form' => 'CreatePost']);
```

Result will be:
Expand Down

0 comments on commit 79a53a9

Please sign in to comment.