TableDefinitionProperties

Type: Object

The properties to configure a TableDefinition.

Arguments

  1. shouldRemoveEmptyRows

    (Required)

    Type: Boolean

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

    Default value

  2. supportsBorders

    (Required)

    Type: Boolean

    Whether the table has support for borders.

    Default value

  3. supportsCellAlignment

    (Required)

    Type: Boolean

    Whether the table has support for cell alignment.

    Default value

  4. supportsRowSpanningCellsAtBottom

    (Required)

    Type: Boolean

    Whether the table allows spanning cells at the bottom without any empty row

    Default value

  5. selectorParts

    (Required)

    Type: Object

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

  6. widthToHtmlWidthStrategy

    (Required)

    Type: Function

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

  7. addWidthsStrategy

    (Required)

    Type: Function

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

  8. divideWidthByTwoStrategy

    (Required)

    Type: Function

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

  9. normalizeColumnWidthsStrategy

    (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.

  10. widthsToFractionsStrategy

    (Optional)

    Type: Function

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

  11. fractionsToWidthsStrategy

    (Optional)

    Type: Function

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

  12. tableDefiningNodeSelector

    (Required)

    Type: XPathTest

    An XPath selector which returns true when given a table element

  13. cellDefiningNodeSelector

    (Required)

    Type: XPathTest

    An XPath selector which returns true when given a cell element

  14. tablePartsNodeSelector

    (Required)

    Type: XPathTest

    An XPath selector which returns true when given any table element

  15. headerRowNodeSelector

    (Required)

    Type: XPathTest

    An XPath selector which returns true when given header row element

  16. findHeaderRowNodesXPathQuery

    (Required)

    An XPath query returning all header row nodes

    Default value

  17. findBodyRowNodesXPathQuery

    (Required)

    An XPath query returning all body row nodes

  18. findFooterRowNodesXPathQuery

    (Required)

    An XPath query returning all footer row nodes

    Default value

  19. findHeaderContainerNodesXPathQuery

    (Required)

    An XPath query returning all header container nodes

    Default value

  20. findBodyContainerNodesXPathQuery

    (Required)

    An XPath query returning all body container nodes

    Default value

  21. findFooterContainerNodesXPathQuery

    (Required)

    An XPath query returning all footer container nodes

    Default value

  22. findColumnSpecificationNodesXPathQuery

    (Required)

    An XPath query returning all column specification nodes

    Default value

  23. findCellNodesXPathQuery

    (Required)

    An XPath query returning all cell nodes found in a row

  24. findNonTableNodesPrecedingRowsXPathQuery

    (Required)

    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

    (Required)

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

    Default value

  26. getColumnIdentifiersXPathQuery

    (Optional)

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

  27. getColumnDataForCellXPathQuery

    (Optional)

    An XPath query returning the column datas for a given cell

  28. getNumberOfColumnsXPathQuery

    (Required)

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

  29. getRowSpanForCellNodeXPathQuery

    (Required)

    An XPath query returning the row span for a given cell

    Default value

  30. getColumnSpanForCellNodeXPathQuery

    (Required)

    An XPath query returning the column span for a given cell

    Default value

  31. cellStylingTranslationQuery

    An XPathQuery that should return the styling for the cell. For more details see cellStylingTranslationQuery.

  32. normalizeContainerNodeStrategies

    (Required)

    Type: Array<Function>

    An array of strategies normalizing container nodes

    Default value

  33. normalizeRowNodeStrategies

    (Required)

    Type: Array<Function>

    An array of strategies normalizing row nodes

    Default value

  34. normalizeCellNodeStrategies

    (Required)

    Type: Array<Function>

    An array of strategies normalizing cell nodes

    Default value

  35. normalizeColumnSpecificationStrategies

    (Required)

    Type: Array<Function>

    An array of strategies normalizing column specifications

    Default value

  36. findNextColumnSpecification

    (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

  37. getDefaultColumnSpecificationStrategy

    (Optional)

    Type: Function

    An function which returns a default column specification as an object

  38. getDefaultCellSpecificationStrategy

    (Optional)

    Type: Function

    An function which returns a default cell specification as an object

  39. getDefaultRowSpecificationStrategy

    (Optional)

    Type: Function

    An function which returns a default row specification as an object

  40. createRowStrategy

    (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

  41. createColumnSpecificationNodeStrategy

    (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.

  42. getTableSpecificationStrategies

    (Required)

    Type: Array<Function>

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

    Default value

  43. getColumnSpecificationStrategies

    (Required)

    Type: Array<Function>

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

    Default value

  44. getRowSpecificationStrategies

    (Required)

    Type: Array<Function>

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

    Default value

  45. getCellSpecificationStrategies

    (Required)

    Type: Array<Function>

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

    Default value

  46. setTableNodeAttributeStrategies

    (Required)

    Type: Array<Function>

    An array of strategies for setting attributes on a table node

    Default value

  47. setColumnSpecificationNodeAttributeStrategies

    (Required)

    Type: Array<Function>

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

    Default value

  48. setRowNodeAttributeStrategies

    (Required)

    Type: Array<Function>

    An array of strategies for setting attributes on a row node

    Default value

  49. setCellNodeAttributeStrategies

    (Required)

    Type: Array<Function>

    An array of strategies for setting attributes on a cell node

    Default value

  50. horizontalAlignmentOperationNames

    (Required)

    Type: Array<String>

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

    Default value

  51. verticalAlignmentOperationNames

    (Required)

    Type: Array<String>

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

    Default value

  52. columnBorderOperationNames

    (Required)

    Type: Array<String>

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

    Default value

  53. rowBorderOperationNames

    (Required)

    Type: Array<String>

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

    Default value

  54. tableBorderOperationNames

    (Required)

    Type: Array<String>

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

    Default value