TableDefinitionProperties

Type: Object

The properties to configure a TableDefinition.

Arguments

# Name Type Description
1. shouldRemoveEmptyRows Boolean

Whether empty rows should be removed (used for CALS and XHTML)


  Default value
true
2. supportsBorders Boolean

Whether the table has support for borders.


  Default value
false
3. supportsCellAlignment Boolean

Whether the table has support for cell alignment.


  Default value
false
4. selectorParts Object

A map containing abstract table part names mapped to "selector parts" (Q{ http://some-namespace.com}localName)

5. widthToHtmlWidthStrategy Function

A function which converts a given width to a HTML compatible width

6. addWidthsStrategy Function

A function which adds up two given widths and returns the resulting width

7. divideWidthByTwoStrategy Function

A function which divides a given width by two and returns the resulting width

8. [normalizeColumnWidthsStrategy] 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.

9. [widthsToFractionsStrategy] Function

A function which will convert a given array of table-specific widths to an array of fractions.

10. [fractionsToWidthsStrategy] Function

A function which will convert a given array of fractions to an array of table-specific widths.

11. tableDefiningNodeSelector XPathTest

An XPath selector which returns true when given a table element

12. cellDefiningNodeSelector XPathTest

An XPath selector which returns true when given a cell element

13. tablePartsNodeSelector XPathTest

An XPath selector which returns true when given any table element

14. headerRowNodeSelector XPathTest

An XPath selector which returns true when given header row element

15. [environmentQuery] 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.

16. findHeaderRowNodesXPathQuery XPathQuery

An XPath query returning all header row nodes


  Default value
"()"
17. findBodyRowNodesXPathQuery XPathQuery

An XPath query returning all body row nodes

18. findFooterRowNodesXPathQuery XPathQuery

An XPath query returning all footer row nodes


  Default value
"()"
19. findHeaderContainerNodesXPathQuery XPathQuery

An XPath query returning all header container nodes


  Default value
"()"
20. findBodyContainerNodesXPathQuery XPathQuery

An XPath query returning all body container nodes


  Default value
"()"
21. findFooterContainerNodesXPathQuery XPathQuery

An XPath query returning all footer container nodes


  Default value
"()"
22. findColumnSpecificationNodesXPathQuery XPathQuery

An XPath query returning all column specification nodes


  Default value
"()"
23. findCellNodesXPathQuery XPathQuery

An XPath query returning all cell nodes found in a row

24. findNonTableNodesPrecedingRowsXPathQuery 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
"()"
25. findNonTableNodesFollowingRowsXPathQuery XPathQuery

An XPath query returning all nodes found inside the table element after nodes which do not define table layout


  Default value
"()"
26. [getColumnIdentifiersXPathQuery] XPathQuery

An XPath query returning the related column names for a given cell

27. [getColumnDataForCellXPathQuery] XPathQuery

An XPath query returning the column datas for a given cell

28. getNumberOfColumnsXPathQuery XPathQuery

An XPath query returning the number of columns found in a given table

29. getRowSpanForCellNodeXPathQuery XPathQuery

An XPath query returning the row span for a given cell


  Default value
"1"
30. getColumnSpanForCellNodeXPathQuery XPathQuery

An XPath query returning the column span for a given cell


  Default value
"1"
31. normalizeContainerNodeStrategies Array<Function>

An array of strategies normalizing container nodes


  Default value
[]
32. normalizeRowNodeStrategies Array<Function>

An array of strategies normalizing row nodes


  Default value
[]
33. normalizeCellNodeStrategies Array<Function>

An array of strategies normalizing cell nodes


  Default value
[]
34. normalizeColumnSpecificationStrategies Array<Function>

An array of strategies normalizing column specifications


  Default value
[]
35. [findNextColumnSpecification] 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

36. [getDefaultColumnSpecificationStrategy] Function

An function which returns a default column specification as an object

37. [getDefaultCellSpecificationStrategy] Function

An function which returns a default cell specification as an object

38. [getDefaultRowSpecificationStrategy] Function

An function which returns a default row specification as an object

39. createRowStrategy Function

An strategy creating a new row node, appending it as child to the table or appropriate container node and returning it


  Arguments
# Name Type Description
1. Context
2. Data
3. Blueprint
40. [createColumnSpecificationNodeStrategy] 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.

41. getTableSpecificationStrategies Array<Function>

An array of strategies for getting attrubute values from a table node


  Default value
[]
42. getColumnSpecificationStrategies Array<Function>

An array of strategies for getting attrubute values from a column specification node


  Default value
[]
43. getRowSpecificationStrategies Array<Function>

An array of strategies for getting attrubute values from a row node


  Default value
[]
44. getCellSpecificationStrategies Array<Function>

An array of strategies for getting attrubute values from a cell node


  Default value
[]
45. setTableNodeAttributeStrategies Array<Function>

An array of strategies for setting attributes on a table node


  Default value
[]
46. setColumnSpecificationNodeAttributeStrategies Array<Function>

An array of strategies for setting attributes on a column specification node


  Default value
[]
47. setRowNodeAttributeStrategies Array<Function>

An array of strategies for setting attributes on a row node


  Default value
[]
48. setCellNodeAttributeStrategies Array<Function>

An array of strategies for setting attributes on a cell node


  Default value
[]
49. horizontalAlignmentOperationNames Array<String>

An array of operation names to control horizontal alignment of content in cells


  Default value
[]
50. verticalAlignmentOperationNames Array<String>

An array of operation names to control vertical alignment of content in cells


  Default value
[]
51. columnBorderOperationNames Array<String>

An array of operation names to control cell borders for a specific column


  Default value
[]
52. rowBorderOperationNames Array<String>

An array of operation names to control cell borders for a specific row


  Default value
[]
53. tableBorderOperationNames Array<String>

An array of operation names to control cell borders for the whole table


  Default value
[]
Was this page helpful?