Skip to content

Wix's App Market SDK module for third party applications

License

Notifications You must be signed in to change notification settings

eliagrady/wix-sdk

Repository files navigation

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!

About

Wix's App Market SDK module for third party applications

Resources

License

Stars

Watchers

Forks

Packages