setDesignPreset( )


Sets the widget's design preset.

The setDesignPreset() function returns a Promise that resolves when the design preset is set. To use this function on an inner (nested) widget, use getNestedWidget().

Note: The setDesignPreset() function doesn't work in preview mode.

Method Declaration
Copy
Method Parameters
presetstringRequired

Preset name.

Did this help?