setDesignPreset()

Note: This function is supported only on Blocks widgets.

Sets the widget's design preset.

To use this function on an inner (nested) widget, use getNestedWidget().

Syntax

Copy

Parameters

NameTypeDescription
designPresetNamestringName of the design preset.

Returns

Promise<void>

Example

Copy
Did this help?