Main Content

setWidths

Class: slmetric.dashboard.Widget
Package: slmetric.dashboard

Specify multiple widths for Metrics Dashboard widget

Description

setWidths(widgetName, widths) specifies possible widths that an slmetric.dashboard.Widget object can have. You can specify up to four different widths. For the input argument widths, pass either one value or an array of four values. You can choose from these possible values:

  • slmetric.dashboard.Width.ExtraSmall

  • slmetric.dashboard.Width.Small

  • slmetric.dashboard.Width.Medium

  • slmetric.dashboard.Width.Large

  • slmetric.dashboard.Width.XLarge

  • slmetric.dashboard.Width.XXLarge

These values correspond to the different sizes that a widget can have as the screen size changes. If you specify one value, the widget always has that value regardless of the screen size. If you specify four different values, the widget size can change four times as you maximize and minimize the screen.

Input Arguments

expand all

slmetric.dashboard.Widget object that is to have between one and four widths

Specify one or as many as four of these values:

  • slmetric.dashboard.Width.ExtraSmall

  • slmetric.dashboard.Width.Small

  • slmetric.dashboard.Width.Medium

  • slmetric.dashboard.Width.Large

  • slmetric.dashboard.Width.XLarge

  • slmetric.dashboard.Width.XXLarge

Introduced in R2018b