Main Content

slreportgen.webview.ExportOptions Class

Namespace: slreportgen.webview

Options for exporting Simulink model to web view

Description

Use objects of the slreportgen.webview.ExportOptions class to specify the items to export to a web view or an embedded web view report.

The slreportgen.webview.ExportOptions class is a handle class.

Creation

Description

Create an slreportgen.webview.ExportOptions object using the slreportgen.webview.ExportOptions function or by creating a web view or embedded web view document. When you create a web view or embedded web view document, slreportgen.webview.WebViewDocument or slreportgen.webview.EmbeddedWebViewDocument automatically create an slreportgen.webview.ExportOptions object.

exportopts = slreportgen.webview.ExportOptions(wvdoc)

Input Arguments

expand all

Web view document, specified as a web view or embedded web view object.

Properties

expand all

Diagrams to export to the web view, specified as a character vector or string scalar.

Data Types: char | string

System and subsystem levels to export, specified as one of these values:

  • "Current and Below" — Current specified system or subsystem and all of its dependents

  • "Current" — Current specified system or subsystem

  • "Current and Above" — Current specified system or subsystem and all of its antecedents

  • "All" — All systems and subsystems in the model

Data Types: char | string

Since R2025a

Whether to export the masked diagrams, specified as "on" or "off", or as numeric or logical 1 (true) or 0 (false). A value of "on" is equivalent to true, and "off" is equivalent to false. Thus, you can use the value of this property as a logical value. The value is stored as an on/off logical value of type matlab.lang.OnOffSwitchState.

  • "on" — Exports all masked diagrams in the web view

  • "off" — Does not export masked diagrams in the web view

Whether to export referenced models, specified as "on" or "off", or as numeric or logical 1 (true) or 0 (false). A value of "on" is equivalent to true, and "off" is equivalent to false. Thus, you can use the value of this property as a logical value. The value is stored as an on/off logical value of type matlab.lang.OnOffSwitchState.

  • "on" — Exports referenced models in the web view

  • "off" — Does not export referenced models in the web view

Since R2024b

Whether to export referenced subsystems, specified as "on" or "off", or as numeric or logical 1 (true) or 0 (false). A value of "on" is equivalent to true, and "off" is equivalent to false. Thus, you can use the value of this property as a logical value. The value is stored as an on/off logical value of type matlab.lang.OnOffSwitchState.

  • "on" — Exports all referenced subsystems in the web view

  • "off" — Does not export referenced subsystems in the web view

Function to export a system and its descendants, specified as a character vector or string scalar that contains the function name, or function handle. The function must return true to include the system or false to exclude the system.

More About

expand all

Version History

Introduced in R2017a

expand all