-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
Description
I believe this differs from #273 which is about fromHTML
.
Using a header config such as this:
var head = [
{
name: 'field1',
prompt: 'Field 1',
width: 150
},
{
name: 'field2',
prompt: 'Field 2',
width: 150,
align: 'right'
}
];
doc.table(10, 10, data, head, {
autoSize: false,
printHeaders: true
});
Currently this line passes header.align
from table
to cell
.
However this section refactors the input and headerNames[j]
is at the end of the day an array of strings, not an array of objects.