getDesignPreset()

Note: This function is supported only on Blocks widgets.

Gets the widget's current design preset.

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

Syntax

Copy

Parameters

This method does not take any parameters.

Returns

Promise<string>

Widget's current preset name.

Example

Copy
Did this help?