constructor Method

Construct a new DisplayStyleSettings from an ElementProps.jsonProperties.

DisplayStyleSettings(jsonProperties: { styles?: DisplayStyleSettingsProps }): DisplayStyleSettings

note When the DisplayStyleSetting's properties are modified by public setters, the jsonProperties's styles object will be updated to reflect the change.

note If jsonProperties contains no styles member, one will be added as an empty object.

note Generally there is no reason to create an object of this type directly; a DisplayStyle or DisplayStyleState constructs one as part of its own construction.

Parameter Type Description
jsonProperties { styles?: DisplayStyleSettingsProps } An object with an optional styles property containing a display style's settings.

Returns - DisplayStyleSettings

Defined in

Last Updated: 13 June, 2024