Skip to content

Commit 398d83c

Browse files
committed
Merge branch '5.4' into 6.3
* 5.4: [Console] [components] add information about the addRows method - table.rst
2 parents 8a75c6d + fe56c21 commit 398d83c

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
@@ -453,3 +453,24 @@ This will display the following table in the terminal:
453453
| Love |
454454
| Symfony |
455455
+---------+
456+
457+
.. tip::
458+
459+
You can create multiple lines using the :method:`Symfony\\Component\\Console\\Helper\\Table::addRows` method::
460+
461+
// ...
462+
$table->addRows([
463+
['Hello', 'World'],
464+
['Love', 'Symfony'],
465+
]);
466+
$table->render();
467+
// ...
468+
469+
This will display:
470+
471+
.. code-block:: terminal
472+
473+
+-------+---------+
474+
| Hello | World |
475+
| Love | Symfony |
476+
+-------+---------+

0 commit comments

Comments
 (0)