Documentation

slreportgen.webview.EmbeddedWebViewDocument.createDiagramLink

Package: slreportgen.webview

Link to embedded Web view report

Syntax

diaglink = createDiagramLink(wvdoc,dhandle,domlabel)

Description

example

diaglink = createDiagramLink(wvdoc,dhandle,domlabel) updates a DOM object in an embedded Web view Document panel so that it links to a diagram anchor handle in the Simulink® Web view. The diaglink DOM object is of the same type as domlabel or if domlabel is a string, an mlreportgen.DOM.Text object is created.

Examples

Create a Link to a Web View

Create a link from a level 2 heading in the center text pane to a Simulink model.

diagHeading = createDiagramLink(h,diagHandle,...
     mlreportgen.dom.Heading(2,get_param(diagHandle,'Name')));

Input Arguments

collapse all

Web view document, specified as an slreportgen.webview.WebViewDocument object.

Handle of Web view diagram anchor, specified as a character vector of the path or as an object handle. You can use the getExportDiagrams method to obtain the diagram paths and handles.

Example: Character vector: 'vdp'. Object handle: get_param('vdp','handle')

DOM object from which to link, specified as a valid DOM object or as a character vector. If you enter a character vector, an mlreportgen.DOM.Text object is created.

Output Arguments

collapse all

More About

collapse all

Diagram

Diagram refers to a Simulink model, subsystem, or Stateflow® chart.

Element

Element refers to an individual item within a diagram, such as a block, annotation, state, or transition.

Introduced in R2017a

Was this topic helpful?