CrossReferencePopover

Type: React component

How to get CrossReferencePopover?

JavaScript

import CrossReferencePopover from 'fontoxml-crosslink-references/src/CrossReferencePopover.jsx'

A component used for making a popover for cross references.

The CrossReferencePopover completely implements FxReferencePopover for cross referencing. The only property that still needs to be added is the resolveReference property.

Props

  1. data

    (Required)

    Type: Object

    The popoverData as provided by the family configuration, this only needs to be passed through.

    Properties

  2. resolveReference

    (Required)

    Type: Function

    This callback will be triggered when the popover is opened or after the permanent id is resolved (if the reference has permanent ids data.targetIsPermanentId).

    Arguments

    Returns