setDesignPreset()

Note: This function is supported only on Blocks widgets.

Sets the selected widget's design preset. Use this function in the widget's custom panel code.

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?