Main Content

slEditToolstripWidget

Open file that defines custom Simulink Toolstrip tab, section, column, or control

Since R2021b

Description

example

slEditToolstripWidget(widget) opens the file that defines the specified custom toolstrip widget, which can be a custom tab, section, column, or control.

Examples

collapse all

Suppose you have multiple JSON files that define custom tabs in a toolstrip component named custom.

To open the file that defines a custom tab named customTab, use the slEditToolstripWidget function.

slEditToolstripWidget("custom:customTab")

Input Arguments

collapse all

Fully qualified widget name, specified as a character vector or string scalar. The fully qualified name is the name of the toolstrip component followed by a colon and the full path to the widget within the toolstrip component. When the widget has a parent JSON object, the fully qualified name includes the ID or index of each JSON object above the widget.

Example: slEditToolstripWidget("custom:customTab") opens the file that defines the tab named customTab in the custom toolstrip component.

Example: slEditToolstripWidget("custom:customTab/2") opens the file that defines the second section on the tab named customTab in the custom toolstrip component.

Example: slEditToolstripWidget("custom:customTab/2/1") opens the file that defines the first column of the second section on the tab named customTab in the custom toolstrip component.

Example: slEditToolstripWidget("custom:customTab/2/1/3") opens the file that defines the third control in the first column of the second section on the tab named customTab in the custom toolstrip component.

Data Types: char | string

Version History

Introduced in R2021b