NavigatorBox.createShortcut

Syntax

createShortcut();

Description

The createShortcut method creates a shortcut for selected object.

Comments

The shortcut is created in the folder that stores the object. The ID SHORTCUT_TO_<object identifier> is assigned to the shortcut.

Example

To execute the example, the HTML page must contain Navigator component named nav (see Example of Creating the Navigator Component). Create a shortcut for the object selected in the menu:

//get the tree of folders and object list

navbox = nav._navigatorBox

//create a shortcut for the selected object

navbox.createShortcut();

//refresh the tree of folders and object list

navbox.refresh();

Executing this example creates a shortcut for selected object.

See also:

NavigatorBox