Class: slreportgen.webview.EmbeddedWebViewDocument
Package: slreportgen.webview

Element link in embedded Web view report



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

Input Arguments

expand all

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

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

Example: Character vector: 'vdp/mu'. Object handle: get_param('vdp/mu','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

expand all


Create Link to Element to Web View

Create a link between a level 2 heading in the center text pane and an element in the Web view.

blockHeading = createElementLink(h,blockHandle, ...
   mlreportgen.dom.Heading(2, get_param(blockHandle,'Name')));

More About

expand all

Introduced in R2017a