slmetric.dashboard.Layout Class
Namespace: slmetric.dashboard
(To be removed) Create object for holding Metrics Dashboard customizations
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
Object that holds an array of widget objects. The size, types, and locations of widgets in
an slmetric.dashboard.Layout object determine the Metrics Dashboard
appearance. These are the widget objects:
slmetric.dashboard.Groupslmetric.dashboard.Containerslmetric.dashboard.Widgetslmetric.dashboard.CustomWidget
Construction
For an slmetric.dashboard.Configuration object, use the
getDashboardLayout method to create an
slmetric.dashboard.Layout object. You can add or remove widgets from this
object. You can specify the size and location of these widgets in the Metrics Dashboard. Once
you complete your specification, apply the
slmetric.dashboard.Configuration.save method to save your configuration.
Use the slmetric.dashboard.setActiveConfiguration function to set the
active configuration.
The Metrics Dashboard layout is divided into 12 columns of equal size. Use the widget object methods to specify widget size.
Methods
| addWidget | (To be removed) Add widget to slmetric.dashboard.Layout
object |
| getWidgets | (To be removed) Obtain a list of widgets in an
slmetric.dashboard.Layout object |
| removeWidget | (To be removed) Remove widget from slmetric.dashboard.Layout
object |