File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
components/console/helpers Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -143,6 +143,27 @@ which outputs:
143
143
80-902734-1-6 And Then There Were None Agatha Christie
144
144
=============== ========================== ==================
145
145
146
+ You can also set the style to ``box ``::
147
+
148
+ $table->setStyle('box');
149
+ $table->render();
150
+
151
+ which outputs:
152
+
153
+ .. code-block :: text
154
+
155
+ ┼───────────────┼──────────────────────────┼──────────────────┼
156
+ │ ISBN │ Title │ Author │
157
+ ┼───────────────┼──────────────────────────┼──────────────────┼
158
+ │ 99921-58-10-7 │ Divine Comedy │ Dante Alighieri │
159
+ │ 9971-5-0210-0 │ A Tale of Two Cities │ Charles Dickens │
160
+ │ 960-425-059-0 │ The Lord of the Rings │ J. R. R. Tolkien │
161
+ │ 80-902734-1-6 │ And Then There Were None │ Agatha Christie │
162
+ ┼───────────────┼──────────────────────────┼──────────────────┼
163
+
164
+ .. versionadded :: 4.1
165
+ The ``box `` style was introduced in Symfony 4.1.
166
+
146
167
If the built-in styles do not fit your need, define your own::
147
168
148
169
use Symfony\Component\Console\Helper\TableStyle;
You can’t perform that action at this time.
0 commit comments