open-nodes-browser-modal

How to get open-nodes-browser-modal

Depend on fontoxml-nodes-browser to make this operation available.

Opens the nodes browser in which the user can select a node.

Imported operation data

Name Type Description
documentId DocumentId

(Optional) Can be used to open the nodes browser with a node preselected. Should only be used in combination with nodeId

insertOperationName String

(Optional) The primary button will be disabled if the selected node can't be inserted with the 'insert operation'.

The operation data collected until the current operation together with the selected node, will be added as initial data to the 'insert operation'.

linkableElementsQuery XPathQuery

(Optional) The nodes that the user can choose from are specified by the linkableElementsQuery. The default of the linkableElementsQuery is //*[@id] which means all nodes with an @id attribute. Example: If you only want footnodes in your nodes list, the linkableElementsQuery could be //fn.


  Default value
"//*[@id]"
modalIcon String

(Optional) The icon to show at the top of the modal. This should be one of the Fontawesome (v4.7.0) icons. Do not include the fa- prefix, just use the icon names as-is from the documentation.

modalPrimaryButtonLabel String

(Optional) The label for the button in the bottom right corner, when clicking this button the selected node will be submitted. The default value for this label is 't__Insert'.


  Default value
"t__Insert"
modalTitle String

(Optional) Specifies the title of the modal which is shown in the upper left corner. The default value for this title is 't__Select an element'.


  Default value
"t__Select an element"
nodeId NodeId

(Optional) Can be used to open the nodes browser with a node preselected. Should only be used in combination with documentId

Exported operation data

Name Type Description
documentId DocumentId

The documentId of the document where the selected node is in.

nodeId NodeId

The nodeId of the selected node.