Table Definition Properties
Type: Object
The properties to configure a TableDefinition.
Arguments
should
Remove Empty Rows (Required)
Type: Boolean
Whether empty rows should be removed (used for CALS and XHTML)
Default value
supports
Borders (Required)
Type: Boolean
Whether the table has support for borders.
Default value
supports
Cell Alignment (Required)
Type: Boolean
Whether the table has support for cell alignment.
Default value
supports
Row Spanning Cells At Bottom (Required)
Type: Boolean
Whether the table allows spanning cells at the bottom without any empty row
Default value
selector
Parts (Required)
Type: Object
A map containing abstract table part names mapped to "selector parts" (Q{http://some-namespace.com}localName)
width
To Html Width Strategy (Required)
Type: Function
A function which converts a given width to a HTML compatible width
add
Widths Strategy (Required)
Type: Function
A function which adds up two given widths and returns the resulting width
divide
Width By Two Strategy (Required)
Type: Function
A function which divides a given width by two and returns the resulting width
normalize
Column Widths Strategy (Optional)
Type: Function
A function which normalizes the widths of the columns after the number of columns changed. You only need this when working with percentual-like widths.
widths
To Fractions Strategy (Optional)
Type: Function
A function which will convert a given array of table-specific widths to an array of fractions.
fractions
To Widths Strategy (Optional)
Type: Function
A function which will convert a given array of fractions to an array of table-specific widths.
table
Defining Node Selector (Required)
Type: XPathTest
An XPath selector which returns true when given a table element
cell
Defining Node Selector (Required)
Type: XPathTest
An XPath selector which returns true when given a cell element
table
Parts Node Selector (Required)
Type: XPathTest
An XPath selector which returns true when given any table element
header
Row Node Selector (Required)
Type: XPathTest
An XPath selector which returns true when given header row element
environment
Query (Optional)
Type: XPathQuery
Deprecated. An XPath query that must evaluate to a map. Entries in the returned map are made available as variables to the other queries below.
find
Header Row Nodes XPath Query (Required)
Type: XPathQuery
An XPath query returning all header row nodes
Default value
find
Body Row Nodes XPath Query (Required)
Type: XPathQuery
An XPath query returning all body row nodes
find
Footer Row Nodes XPath Query (Required)
Type: XPathQuery
An XPath query returning all footer row nodes
Default value
find
Header Container Nodes XPath Query (Required)
Type: XPathQuery
An XPath query returning all header container nodes
Default value
find
Body Container Nodes XPath Query (Required)
Type: XPathQuery
An XPath query returning all body container nodes
Default value
find
Footer Container Nodes XPath Query (Required)
Type: XPathQuery
An XPath query returning all footer container nodes
Default value
find
Column Specification Nodes XPath Query (Required)
Type: XPathQuery
An XPath query returning all column specification nodes
Default value
find
Cell Nodes XPath Query (Required)
Type: XPathQuery
An XPath query returning all cell nodes found in a row
find
Non Table Nodes Preceding Rows XPath Query (Required)
Type: XPathQuery
An XPath query returning all nodes found inside the table element before nodes which do not define table layout (caption, head, etc.)
Default value
find
Non Table Nodes Following Rows XPath Query (Required)
Type: XPathQuery
An XPath query returning all nodes found inside the table element after nodes which do not define table layout
Default value
get
Column Identifiers XPath Query (Optional)
Type: XPathQuery
An XPath query returning the related column names for a given cell
get
Column Data For Cell XPath Query (Optional)
Type: XPathQuery
An XPath query returning the column datas for a given cell
get
Number Of Columns XPath Query (Required)
Type: XPathQuery
An XPath query returning the number of columns found in a given table
get
Row Span For Cell Node XPath Query (Required)
Type: XPathQuery
An XPath query returning the row span for a given cell
Default value
get
Column Span For Cell Node XPath Query (Required)
Type: XPathQuery
An XPath query returning the column span for a given cell
Default value
cell
Styling Translation Query (Optional)
An XPathQuery that should return the styling for the cell. For more details see cellStylingTranslationQuery.
normalize
Container Node Strategies (Required)
Type: Array<Function>
An array of strategies normalizing container nodes
Default value
normalize
Row Node Strategies (Required)
Type: Array<Function>
An array of strategies normalizing row nodes
Default value
normalize
Cell Node Strategies (Required)
Type: Array<Function>
An array of strategies normalizing cell nodes
Default value
normalize
Column Specification Strategies (Required)
Type: Array<Function>
An array of strategies normalizing column specifications
Default value
find
Next Column Specification (Optional)
Type: Function
An function which is used in a javascript Array.find to find the next column specification node, returning false if no following node can be found
get
Default Column Specification Strategy (Optional)
Type: Function
An function which returns a default column specification as an object
get
Default Cell Specification Strategy (Optional)
Type: Function
An function which returns a default cell specification as an object
get
Default Row Specification Strategy (Optional)
Type: Function
An function which returns a default row specification as an object
create
Row Strategy (Required)
Type: Function
An strategy creating a new row node, appending it as child to the table or appropriate container node and returning it
Arguments
create
Column Specification Node Strategy (Optional)
Type: Function
An strategy creating a new column specification node, appending it as child to the table node and returning it. Omit to not create any column specifications.
get
Table Specification Strategies (Required)
Type: Array<Function>
An array of strategies for getting attrubute values from a table node
Default value
get
Column Specification Strategies (Required)
Type: Array<Function>
An array of strategies for getting attrubute values from a column specification node
Default value
get
Row Specification Strategies (Required)
Type: Array<Function>
An array of strategies for getting attrubute values from a row node
Default value
get
Cell Specification Strategies (Required)
Type: Array<Function>
An array of strategies for getting attrubute values from a cell node
Default value
set
Table Node Attribute Strategies (Required)
Type: Array<Function>
An array of strategies for setting attributes on a table node
Default value
set
Column Specification Node Attribute Strategies (Required)
Type: Array<Function>
An array of strategies for setting attributes on a column specification node
Default value
set
Row Node Attribute Strategies (Required)
Type: Array<Function>
An array of strategies for setting attributes on a row node
Default value
set
Cell Node Attribute Strategies (Required)
Type: Array<Function>
An array of strategies for setting attributes on a cell node
Default value
horizontal
Alignment Operation Names (Required)
Type: Array<String>
An array of operation names to control horizontal alignment of content in cells
Default value
vertical
Alignment Operation Names (Required)
Type: Array<String>
An array of operation names to control vertical alignment of content in cells
Default value
column
Border Operation Names (Required)
Type: Array<String>
An array of operation names to control cell borders for a specific column
Default value
row
Border Operation Names (Required)
Type: Array<String>
An array of operation names to control cell borders for a specific row
Default value
table
Border Operation Names (Required)
Type: Array<String>
An array of operation names to control cell borders for the whole table
Default value