@@ -212,11 +212,11 @@ In a similar way you can span multiple rows::
212
212
->setHeaders(array('ISBN', 'Title', 'Author'))
213
213
->setRows(array(
214
214
array(
215
- new TableCell("This ISBN is spanning\nmultiple rows", array('rowspan' => 2)) ,
216
- 'A Tale of Two Cities ',
217
- 'Charles Dickens' ,
215
+ '978-0521567817' ,
216
+ 'De Monarchia ',
217
+ new TableCell("Dante Alighieri\nspans multiple rows", array('rowspan' => 2)) ,
218
218
),
219
- array('Divine Comedy ', 'Dante Alighieri '),
219
+ array('978-0804169127 ', 'Divine Comedy '),
220
220
))
221
221
;
222
222
$table->render();
@@ -225,12 +225,12 @@ which results in:
225
225
226
226
.. code-block :: text
227
227
228
- +----------------------- +----------------------+ -----------------+
229
- | ISBN | Title | Author |
230
- +----------------------- +----------------------+ -----------------+
231
- | This ISBN is spanning | A Tale of Two Cities | Charles Dickens |
232
- | multiple rows | Divine Comedy | Dante Alighieri |
233
- +----------------------- +----------------------+ -----------------+
228
+ +----------------+---------------+ ---------------------+
229
+ | ISBN | Title | Author |
230
+ +----------------+---------------+ ---------------------+
231
+ | 978-0521567817 | De Monarchia | Dante Alighieri |
232
+ | 978-0804169127 | Divine Comedy | spans multiple rows |
233
+ +----------------+---------------+ ---------------------+
234
234
235
235
You can use the ``colspan `` and ``rowspan `` options at the same time which allows
236
236
you to create any table layout you may wish.
0 commit comments