configure As Simpletable Table Elements
Type: Function
How to get configureAsSimpletableTableElements?
JavaScript
import configureAsSimpletableTableElements from 'fontoxml-dita/src/configureAsSimpletableTableElements.js'
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:
Other
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'
});
As simple tables do not use elements to define columns, the columnBefore widget area is not supported.
Example usage for the table widgets:
Other
configureAsSimpletableTableElements(sxModule, {
table: {
tableFilterSelector: 'not(@conref)'
},
stentry: {
defaultTextContainer: 'p'
},
rowBefore: [
createIconWidget('dot-circle-o', {
clickOperation: 'do-nothing'
})
],
columnBefore: [
createIconWidget('clock-o', {
clickOperation: 'lcTime-value-edit',
tooltipContent: 'Click here to edit the duration'
})
],
showInsertionWidget: true,
showHighlightingWidget: true,
columnWidgetMenuOperations: [{ contents: [{ name: 'column-delete-at-index' }] }],
rowWidgetMenuOperations: [{ contents: [{ name: 'contextual-row-delete' }] }]
});
Simple tables can also be configured to be collapsible. Refer to our guide to learn more.
Arguments
sx
Module (Required)
Type: SxModule
options
(Required)
Type: Object
Properties