Nodes browser library
This add-on exposes the operation/open-nodes-browser-modal operation for opening a nodes browser. This browser allows the user to choose between specified element nodes from the documents currently opened in the editor. This, for example, can be used while selecting a target for a link.
Getting started
This add-on can be added to an editor by selecting the checkbox for this add-on in the SDK portal. Then install this add-on as usual.
Usage
This browser can be used by adding the following operation step to your operation:
Other
{
"type": "operation/open-nodes-browser-modal"
}
The following properties can be used with this operation:
-
When this modal is used to edit an existing link, the
documentId
andnodeId
properties can be used to set the selection on the original node. -
The set of nodes which to choose from is specified by the
linkableElementsQuery
. -
Use
insertOperationName
to disable the primary button based on the operation state. -
The modal icon, title and primary button label can be set with the
modalIcon
,modalTitle
andmodalPrimaryButtonLabel
respectively.
For more information see operation/open-nodes-browser-modal.