NewTab snippet example

When you select a TGML graphic that has a configured URL In Same Window snippet, another site or web application page opens in the same window.

This topic uses an example to illustrate how to configure a NewTab snippet.

Prerequisites

This example uses a graphic file that already has a binded component in the workspace. For more information on how to prepare the TGML graphic snippet examples, see TGML snippet examples prerequisites.

To create a NewTab snippet:

  1. Select Snippets pane in the bottom left corner, and then from the list of snippets select NewTab.
  2. Drag and drop the NewTab snippet over the selected component in the workspace and save it.
  3. In the bottom right corner select Objects, and then expand the TGML node.
  4. Two additional properties appear: Link and Script.

  5. Update the link with the TGML file to be opened.
  6. Select File > Save As > File.
  7. Enter a file name, and then select Save.

To view the snippet behavior:

  1. In a browser, log in to PME Web Applications.
  2. Select the new TGML file from the left panel Diagram Library as shown in the following image:
  3. Select on the breaker to open a NewTab from the component.
  4. The new link is opened: