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.
2 parents 8a75c6d + fe56c21 commit 398d83cCopy full SHA for 398d83c
components/console/helpers/table.rst
@@ -453,3 +453,24 @@ This will display the following table in the terminal:
453
| Love |
454
| Symfony |
455
+---------+
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