diff --git a/components/console/helpers/table.rst b/components/console/helpers/table.rst index b1c87bdacbf..244f63db6b6 100644 --- a/components/console/helpers/table.rst +++ b/components/console/helpers/table.rst @@ -164,6 +164,27 @@ which outputs: .. versionadded:: 4.1 The ``box`` style was introduced in Symfony 4.1. +You can also set the style to ``box-double``:: + + $table->setStyle('box-double'); + $table->render(); + +which outputs: + +.. code-block:: text + + ╔═══════════════╤══════════════════════════╤══════════════════╗ + ║ ISBN │ Title │ Author ║ + ╠═══════════════╪══════════════════════════╪══════════════════╣ + ║ 99921-58-10-7 │ Divine Comedy │ Dante Alighieri ║ + ║ 9971-5-0210-0 │ A Tale of Two Cities │ Charles Dickens ║ + ║ 960-425-059-0 │ The Lord of the Rings │ J. R. R. Tolkien ║ + ║ 80-902734-1-6 │ And Then There Were None │ Agatha Christie ║ + ╚═══════════════╧══════════════════════════╧══════════════════╝ + +.. versionadded:: 4.1 + The ``box-double`` style was introduced in Symfony 4.1. + If the built-in styles do not fit your need, define your own:: use Symfony\Component\Console\Helper\TableStyle;