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:
Parameters:
Name | Type | Description |
---|---|---|
feature (required) | Wix.Features.Types | Specify one of the following features: PREVIEW_TO_SETTINGS (see openSettingsDialog), ADD_COMPONENT (see addComponent), RESIZE_COMPONENT (see resizeComponent) |
callback (required) | Function | Returns true via callback if the feature is available for use. |
Example: