Main Content

getDashboardLayout

Class: slmetric.dashboard.Configuration
Namespace: slmetric.dashboard

(To be removed) Create Metrics Dashboard layout object in base workspace

The Metrics Dashboard user interface, metricdashboard function, slmetric package API, and corresponding customizations will be removed in a future release. For more information, see Migrating from Metrics Dashboard to Model Maintainability Dashboard.

Description

example

Layout = getDashboardLayout(conf) creates an slmetric.dashboard.Layout object in the base workspace. Use this object to specify the location, size, and types of widgets that are in the Metrics Dashboard.

Input Arguments

expand all

slmetric.dashboard.Configuration object for which to create a custom Metrics Dashboard configuration. By default, an slmetric.dashboard.Configuration object holds an empty slmetric.dashboard.Layout object.

Output Arguments

expand all

slmetric.dashboard.Layout object for which to specify the location, size, and types of widgets in the Metrics Dashboard.

Examples

expand all

Use the new method to create an slmetric.dashboard.Configuration object. As an input, specify the name of the XML file that is to contain information on a custom metrics dashboard layout. After you add this information to the configuration object, use the slmetric.dashboard.Configuration.save method to save the file.

CONF = slmetric.dashboard.Configuration.new('Name','default')
CONF = 

  Configuration with properties:

        Name: 'default'
    FileName: ''
    Location: ''

Obtain the slmetric.dashboard.Layout object from the slmetric.dashboard.Configuration object.

layout = getDashboardLayout(CONF);

Version History

Introduced in R2018b

collapse all

R2022a: Metrics Dashboard will be removed

The Metrics Dashboard user interface, metricdashboard function, slmetric package API, and corresponding customizations will be removed in a future release. For more information, see Migrating from Metrics Dashboard to Model Maintainability Dashboard.