configureAsSimpletableTableElements

How to get configureAsSimpletableTableElements

import configureAsSimpletableTableElements from 'fontoxml-dita/src/configureAsSimpletableTableElements.js'

Type: Function

Configure the given set of elements as a DITA simpletable. More configuration options for the configureAsSimpletableTableElements function will be added at a later point in time.

For example:

configureAsSimpletableTableElements(sxModule, {
    priority: 5, // Optional
    stentry: {
        defaultTextContainer: 'p' // Optional
    },
    table: {
        tableFilterSelector: 'not(@conref)'
    }
});

configureProperties(sxModule, 'self::simpletable', {
    contextualOperations: [
        { name: 'table-contextual-delete' }
    ],
    markupLabel: 'simple table',
    tabNavigationItemSelectorOrNodeSpec: 'self::entry'
});

Arguments

# Name Type Description
1. sxModule SxModule
2. options Object
  Members

Members

Name Type Description
[priority] Number

Selector priority for all elements configured by this function

[stentry] Object

Configuration options for the stentry element

  Members

Members

Name Type Description
[defaultTextContainer] String

The default text container for the stentry element

[table] Object

Configuration for the whole table

  Members

Members

Name Type Description
[tableFilterSelector] XPathTest

Additional override for which simple table elements should be regarded as tables. This can be used to configure conreffed tables as not being tables.