Here are some useful short code snippets that you can use in any type of Blocks app. Copy, adapt the names to your app and make things work!
Use this snippet to get the pricing plan of an app instance on a specific site. For example, “free” or “premium”. Learn more
1
Use the following snippets in your custom panel code tab. Learn more
Use a custom panel to get the widget API properties. Learn more
1
Use a custom panel to set the widget API properties. Learn more
1
Create a link in a custom panel that opens the app dashboard page. Learn more
1
Create a link in a custom panel that opens the app’s plan picker. Learn more
1
Get and set properties of an inner widget from a panel in the outer widget. Learn more
1
Expand and collapse elements in a custom panel. Learn more
1
Use wix-data
to query collections in your app. Learn more
1