createRelatedNodesWidget

How to get createRelatedNodesWidget

import createRelatedNodesWidget from 'fontoxml-families/src/createRelatedNodesWidget.js'

Type: Function

Deprecated

This API has been deprecated.

This widget is deprecated, use the createRelatedNodesQueryWidget.

This widget is used to display a number of related nodes in a widget. The selector is used to accumulate all matching outermost descendants.

Warning:

The passed query may only use the attribute and parent axis of the node. Using other axes may cause the widget to not be updated.

Use the createRelatedNodesQueryWidget instead, this widget does not have these behaviourable quirks.

Arguments

# Name Type Description
1. selector XPathQuery

An XPathQuery.

2. [options] Object
  Members

Members

Name Type Description
appearance String

Either 'form' or 'footnotes'.


  Default value
"footnotes"

Returns

Type: Widget

Was this page helpful?