Blocks Code Snippets

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!

Get Pricing Plan

Use this snippet to get the pricing plan of an app instance on a specific site. For example, “free” or “premium”. Learn more

コピー
1

Custom Panel Code

Use the following snippets in your custom panel code tab. Learn more

Get widget properties in a panel

Use a custom panel to get the widget API properties. Learn more

コピー
1

Set widget properties in a panel

Use a custom panel to set the widget API properties. Learn more

コピー
1

Open the app dashboard from a panel

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

Access inner-widget properties from a panel

Get and set properties of an inner widget from a panel in the outer widget. Learn more

コピー
1

Expand and collapse panel elements

Expand and collapse elements in a custom panel. Learn more

コピー
1

Query data from a CMS database collection

Use ウィックスデータ to query collections in your app. お問合せ

コピー
1
役に立ちましたか?
はい
いいえ