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 42d965b + aa87669 commit dc18917Copy full SHA for dc18917
components/console/helpers/table.rst
@@ -449,3 +449,24 @@ This will display the following table in the terminal:
449
| Love |
450
| Symfony |
451
+---------+
452
+
453
+.. tip::
454
455
+ You can create multiple lines using the :method:`Symfony\\Component\\Console\\Helper\\Table::addRows` method::
456
457
+ // ...
458
+ $table->addRows([
459
+ ['Hello', 'World'],
460
+ ['Love', 'Symfony'],
461
+ ]);
462
+ $table->render();
463
464
465
+ This will display:
466
467
+ .. code-block:: terminal
468
469
+ +-------+---------+
470
+ | Hello | World |
471
+ | Love | Symfony |
472
0 commit comments