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
1
isSupported(feature, callback)

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
1
Wix.Features.isSupported(Wix.Features.Types.RESIZE_COMPONENT, function(data) {console.log(data)})
Was this helpful?
Yes
No