Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7f8af6f

Browse filesBrowse files
committed
minor #10243 Fixed Modifying Rendered Tables example (jeremyFreeAgent)
This PR was merged into the 4.1 branch. Discussion ---------- Fixed Modifying Rendered Tables example Small typo fix + updated the render. Commits ------- 769571a Fixed Modifying Rendered Tables example
2 parents 0e9a651 + 769571a commit 7f8af6f
Copy full SHA for 7f8af6f

File tree

Expand file treeCollapse file tree

1 file changed

+6
-6
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-6
lines changed

‎components/console/helpers/table.rst

Copy file name to clipboardExpand all lines: components/console/helpers/table.rst
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -353,18 +353,18 @@ The only requirement to append rows is that the table must be rendered inside a
353353
$section = $output->section();
354354
$table = new Table($section);
355355

356-
$table->addRow(['Row 1']);
356+
$table->addRow(['Love']);
357357
$table->render();
358358

359-
$table->addRow(['Row 2']);
359+
$table->appendRow(['Symfony']);
360360
}
361361
}
362362

363363
This will display the following table in the terminal:
364364

365365
.. code-block:: terminal
366366
367-
+-------+
368-
| Row 1 |
369-
| Row 2 |
370-
+-------+
367+
+---------+
368+
| Love |
369+
| Symfony |
370+
+---------+

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.