wix-sdk

1.90.0 • Public • Published

wix-sdk

Wix's App Market SDK module for 3rd-party applications

npm version

Why this module, and how to use?

If you're using an npm-centric client build, you might want to use an 'import' statement instead of a global for code consistency.

What it does?

It only exposes the global 'Wix' variable that is available after loading the Wix SDK script as an (importable) object reference.

Code example

import Wix from 'wix-sdk';
 
// Now we have the Wix global variable, we can call methods on it:
const cacheKiller = Wix.Utils.getCacheKiller();
const resizeSupported = Wix.Features.isSupported(Wix.Features.Types.RESIZE_COMPONENT, function (data){console.log(data)});
// ... your awesome app code here!
 

Readme

Keywords

none

Package Sidebar

Install

npm i wix-sdk

Weekly Downloads

5

Version

1.90.0

License

MIT

Last publish

Collaborators

  • eliagrady