User`s guide
mlreportgen.dom.BorderCollapse class
12-27
A session-unique ID is generated as part of document element creation. You can specify
an ID to replace the generated ID.
Tag — Tag for document element
string
Tag for document element, specified as a string.
A session-unique ID is generated as part of document element creation. The generated
tag has the form CLASS:ID, where CLASS is the class of the element and ID is the value
of the Id property of the object. You can specify a tag to replace the generated tag.
Specify your own tag value, for example, to make it easier to identify where an issue
occurred during document generation.
Value — Specify whether to collapse border
string
String specifying to collapse table borders ('on') or to leave table and adjacent cell
borders separate ('off').
Examples
Collapse and Separate Table Borders
import mlreportgen.dom.*;
doctype = 'html';
d = Document('test',doctype);
magicArray = magic(5);
p = Paragraph('Collapsed Borders');
append(d,p);
table = Table(magicArray);
table.Style = {Border('solid'),BorderCollapse('on')};
for r = 1:5
for c = 1:5
table.entry(r,c).Style = {Border('solid')};
end
end
append(d,table);