Skip to content

Commit 3a84de0

Browse files
committed
minor #6858 Fix documentation about addColumn() method (befresh-mweimerskirch)
This PR was merged into the 4.x branch. Discussion ---------- Fix documentation about addColumn() method This is a minor documentation fix. When using addColumn() with an integer, it is transformed to col-md-N and not col-N. See https://github.com/EasyCorp/EasyAdminBundle/blob/4.x/src/Field/FormField.php#L139 Commits ------- cab02f0 Fix documentation about addColumn() method
2 parents 68cdc0d + cab02f0 commit 3a84de0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/fields.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -388,8 +388,8 @@ The arguments of the ``addColumn()`` method are:
388388

389389
* ``$cols``: (type: ``int|string``) the width of the column defined as any value
390390
compatible with the `Bootstrap grid system`_ (e.g. ``'col-6'``, ``'col-md-6 col-xl-4'``,
391-
etc.). Integer values are transformed like this: N -> 'col-N' (e.g. ``8`` is
392-
transformed to ``col-8``);
391+
etc.). Integer values are transformed like this: N -> 'col-md-N' (e.g. ``8`` is
392+
transformed to ``col-md-8``);
393393
* ``$label``: (type: ``TranslatableInterface|string|false|null``) an optional title
394394
that is displayed at the top of the column. If you pass ``false``, ``null``
395395
or an empty string, no title is displayed. You can also pass ``string`` and

0 commit comments

Comments
 (0)