Skip to content

[Console] Mentioned the new methods related to crossing chars #9473

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions components/console/helpers/table.rst
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ If the built-in styles do not fit your need, define your own::
$tableStyle
->setHorizontalBorderChar('<fg=magenta>|</>')
->setVerticalBorderChar('<fg=magenta>-</>')
->setCrossingChar(' ')
->setDefaultCrossingChar(' ')
;

// uses the custom style for this table
Expand All @@ -186,12 +186,18 @@ Here is a full list of things you can customize:
* :method:`Symfony\\Component\\Console\\Helper\\TableStyle::setPaddingChar`
* :method:`Symfony\\Component\\Console\\Helper\\TableStyle::setHorizontalBorderChar`
* :method:`Symfony\\Component\\Console\\Helper\\TableStyle::setVerticalBorderChar`
* :method:`Symfony\\Component\\Console\\Helper\\TableStyle::setCrossingChar`
* :method:`Symfony\\Component\\Console\\Helper\\TableStyle::setCrossingChars`
* :method:`Symfony\\Component\\Console\\Helper\\TableStyle::setDefaultCrossingChar`
* :method:`Symfony\\Component\\Console\\Helper\\TableStyle::setCellHeaderFormat`
* :method:`Symfony\\Component\\Console\\Helper\\TableStyle::setCellRowFormat`
* :method:`Symfony\\Component\\Console\\Helper\\TableStyle::setBorderFormat`
* :method:`Symfony\\Component\\Console\\Helper\\TableStyle::setPadType`

.. versionadded:: 4.1
The ``setCrossingChars()`` and ``setDefaultCrossingChar()`` methods were
introduced in Symfony 4.1. Previously you could only use the now deprecated
``setCrossingChar()`` method.

.. tip::

You can also register a style globally::
Expand Down