{VIObject} Object containing the existing workspace.
{string} Client ID of the workspace to add to.
{ObjectIdentifier[]} Objects to add. It is safe to pass objects that are already in the workspace.
Optional
networkData: NetworkData{NetworkData} If provided, network data that will be merged into any existing network data on the workspace.
Optional
isUndoRedo: boolean{boolean} Specifies if the function was called as part of an undo/redo operation.
{ObjectIdentifier[]} Objects to add to the new workspace.
{string} Object type where the workspace is created.
Optional
options: AddToNewWorkspaceOptions{AddToNewWorkspaceOptions} Additional options to set a target object ID, workspace name and so on.
{ClientSheet} Workspace containing the network. The workspace should not be manually constructed.
Optional
handleAddToWorkspaceFn: (() => void){function} A callback to handle adding the selected nodes to a workspace.
Optional
handleAddToInsightsFn: (() => void){function} A callback to handle adding the NLD to an Insight.
Promise resolving to the list containing all Context Menu Items.
use registerNetworkMenuCallback instead.
Deprecated. This function is deprecated and replaced with registerNetworkMenuCallback. The original function did not allow users to extend the menu being constructed by a context click.
Creates and returns the list containing all Context Menu Items for a right-click on a network diagram node. The menu is not rendered on the network diagram.
{ClientSheet} Sheet contained within the expected object.
The requested object or undefined if it could not be found.
{ObjectIdentifier[]} Objects to add to a workspace.
Optional
options: AddAllObjectsToWorkspaceDialogOptions{AddAllObjectsToWorkspaceDialogOptions} Additional options to customize the dialog box and select the Visualization to display after the objects are added.
{Uint8Array | HTMLElement} Image to add. Either directly as an array of bytes or from an HTMLElement on the page.
Optional
contentType: string{string} Used in the content-type header when the file is uploaded.
Optional
height: string{string} Height of the Insights cell.
Optional
width: string{string} Width of the Insights cell.
{NetworkMenuType} The type of menu to extend.
Optional
callback: NetworkMenuCallback{NetworkMenuCallback} The callback function invoked when the context menu is constructed. This function is passed the menu object, which can be modified/extended, and the "client Id" of the current workspace. If callback not passed in or is undefined, the callback is unregistered.
void
Registers a callback that is invoked whenever the node or network context menu is constructed. The caller can extend the menu to provide access to extra functionality. It is the caller's responsibility to ensure that they properly extend the menu. Failing to do so can result in application errors.
The callback can be unregistered by calling this function without passing in a callback function or setting it to undefined.
This API relates to SAS Visual Investigator's sheet functionality.
Accessed from the window at
window.sas.vi.sheet
.Example