DitaCrossReferencePopover

Type: React component

A popover used for cross references in dita editors.

Is registered under the name DitaCrossReferencePopover.

Use the popover in the family configuration by adding visualization.popoverComponentName and visualization.popoverData.

An example on how to use DitaCrossReferencePopover in the family configuration:

JavaScript

configureAsInlineLink(sxModule, 'self::xref[@format="dita"]', 'link', {
	emptyElementPlaceholderText: 'type the link text',
	popoverComponentName: 'DitaCrossReferencePopover',
	popoverData: {
		editOperationName: 'dita-reference-document-edit',
		targetQuery: '@href'
	},
	referenceQuery: '@href'
});

Props

  1. data

    (Required)

    Type: Object

    The popoverData that should be provided in the family configuration.

    Properties

  2. togglePopover

    (Required)

    Type: Function

    Returns