Wix.Features

isSupported

Checks if a feature is available for use. The feature name must be one of Wix.Features.Types listed below.

SDK Version: SDK 1.45.0+
Editor Version: New Editor
Display: Preview
Components: Wix Dashboard, Dashboard, Widget, Pinned (aka Fixed-Position) Widget, Page, Settings Panel, Settings Modal

Syntax:

Copy

Parameters:

NameTypeDescription
feature (required)Wix.Features.TypesSpecify one of the following features: PREVIEW_TO_SETTINGS (see openSettingsDialog), ADD_COMPONENT (see addComponent), RESIZE_COMPONENT (see resizeComponent)
callback (required)FunctionReturns true via callback if the feature is available for use.

Example:

Copy
Did this help?