User`s guide
mlreportgen.dom.ResizeToFitContents class
12-255
Properties
Id — ID for document element
string
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 — Allow table to resize its columns
logical value
A setting of true (or 1) allows a table to resize its columns to fit their contents. A setting
of false (or 0) causes the content to wrap.
Data Types: logical
Examples
Resize Table Columns to Fit Content
Create a table and specify to resize the column widths to fit the widest table entry in the
column.
import mlreportgen.dom.*;
doctype = 'html';
d = Document('test',doctype);
append(d,Heading(1,'Table 1'));
table1 = Table(ones(4,4));