File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 9393 templates using ``DELETE `` method.
9494- ``HtmlHelper::importmap() `` was added. This method allows you to define
9595 import maps for your JavaScript files.
96+ - ``FormHelper `` now uses the ``containerClass `` template to apply a class to
97+ the form control div. The default value is ``input ``.
9698
9799Error
98100-----
Original file line number Diff line number Diff line change @@ -376,13 +376,14 @@ methods of FormHelper.
376376
377377By default the ``control() `` method will employ the following widget templates::
378378
379- 'inputContainer' => '<div class="input {{type}}{{required}}">{{content}}</div>'
379+ 'inputContainer' => '<div class="{{constainerClass}} {{type}}{{required}}">{{content}}</div>'
380380 'input' => '<input type="{{type}}" name="{{name}}"{{attrs}}>'
381381 'requiredClass' => 'required'
382+ 'containerClass' => 'input'
382383
383384In case of validation errors it will also use::
384385
385- 'inputContainerError' => '<div class="input {{type}}{{required}} error">{{content}}{{error}}</div>'
386+ 'inputContainerError' => '<div class="{{containerClass}} {{type}}{{required}} error">{{content}}{{error}}</div>'
386387
387388The type of control created (when we provide no additional options to specify the
388389generated element type) is inferred via model introspection and
You can’t perform that action at this time.
0 commit comments