This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

slmetric.dashboard.Configuration class

Package: slmetric.dashboard

Object containing information on Metrics Dashboard layout and widgets

Description

Instances of slmetric.dashboard.Configuration contain information on the layout and types of widgets in the Metric Dashboard.

Construction

Use the slmetric.dashboard.Configuration class to specify the layout and types of widgets in the Metrics Dashboard. To create an slmetric.dashboard.Configuration object, use the new method. Each slmetric.dashboard.Configuration object contains one slmetric.dashboard.Layout object. Use the methods and properties of the slmetric.dashboard.Layout class to customize the widgets and layout of the Metrics Dashboard.

You can modify an existing Metrics Dashboard layout, such as the shipped Metrics Dashboard layout, by using the getDashboardLayout method.

Properties

expand all

Name of configuration object that you use to specify the Metrics Dashboard layout. This property is read/write.

Data Types: char

XML file name that contains information on the current Metrics Dashboard layout. This property is read/write.

Data Types: char

Location of XML file that contains Metrics Dashboard layout. This property is optional and read/write.

Data Types: char

Methods

getDashboardLayout Create Metrics Dashboard layout object in base workspace
new Create configuration object for customizing Metrics Dashboard layout
openCreate slmetric.dashboard.Configuration object associated with XML configuration file in the base workspace
openDefaultConfiguration Return shipping Metrics Dashboard configuration object in base workspace
save Save contents of slmetric.dashboard.Configuration object to XML file

Examples

collapse 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 save method to save the file.

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

  Configuration with properties:

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

Introduced in R2018b