Skip to content

Commit 0ec5009

Browse files
committed
minor #9664 [Console] box-double table style (snoek09)
This PR was merged into the master branch. Discussion ---------- [Console] box-double table style This partly fixes #9646. Commits ------- e0be8ce box-double table style
2 parents d4dbf45 + e0be8ce commit 0ec5009

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

components/console/helpers/table.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,27 @@ which outputs:
164164
.. versionadded:: 4.1
165165
The ``box`` style was introduced in Symfony 4.1.
166166

167+
You can also set the style to ``box-double``::
168+
169+
$table->setStyle('box-double');
170+
$table->render();
171+
172+
which outputs:
173+
174+
.. code-block:: text
175+
176+
╔═══════════════╤══════════════════════════╤══════════════════╗
177+
║ ISBN │ Title │ Author ║
178+
╠═══════════════╪══════════════════════════╪══════════════════╣
179+
║ 99921-58-10-7 │ Divine Comedy │ Dante Alighieri ║
180+
║ 9971-5-0210-0 │ A Tale of Two Cities │ Charles Dickens ║
181+
║ 960-425-059-0 │ The Lord of the Rings │ J. R. R. Tolkien ║
182+
║ 80-902734-1-6 │ And Then There Were None │ Agatha Christie ║
183+
╚═══════════════╧══════════════════════════╧══════════════════╝
184+
185+
.. versionadded:: 4.1
186+
The ``box-double`` style was introduced in Symfony 4.1.
187+
167188
If the built-in styles do not fit your need, define your own::
168189

169190
use Symfony\Component\Console\Helper\TableStyle;

0 commit comments

Comments
 (0)