Adding Row Spans

From Q
Jump to: navigation, search

Adds Spans (i.e., sub-headings) to the rows of a table. Note that this does not change the underlying question (whereas if modifying a table by selecting headings, right-clicking and selecting Create Span the change would be made wherever the question in the rows is used).

 // Span the Coke brands.
 table.spanRows([table.rowIndex('Coca Cola'),
                 table.rowIndex('Diet Coke'),
                 table.rowIndex('Coke Zero')],
                'Coke Brands');

 // Span the Pepsi brands.
 table.spanRows([table.rowIndex('Pepsi Light'),
                 table.rowIndex('Pepsi Max'),
                'Pepsi Brands');

See also