We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62ff824 commit 4a814a6Copy full SHA for 4a814a6
components/console/helpers/table.rst
@@ -432,3 +432,24 @@ This will display the following table in the terminal:
432
| Love |
433
| Symfony |
434
+---------+
435
+
436
+.. tip::
437
438
+ You can create multiple lines using the :method:`Symfony\\Component\\Console\\Helper\\Table::addRows` method::
439
440
+ // ...
441
+ $table->addRows([
442
+ ['Hello', 'World'],
443
+ ['Love', 'Symfony'],
444
+ ]);
445
+ $table->render();
446
447
448
+ This will display:
449
450
+ .. code-block:: terminal
451
452
+ +-------+---------+
453
+ | Hello | World |
454
+ | Love | Symfony |
455
0 commit comments