configureAsSimpletableTableElements

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'
});

Check our guide for more information on table widgets. 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,
	showSelectionWidget: 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

  1. sxModule

    (Required)

    Type: SxModule

  2. options

    (Required)

    Type: Object

    Properties