Search.../

skin

Sets or gets the button's skin.

Description

The skin can be:

  • "STANDARD"
  • "STANDARD_SECONDARY"
  • "PREMIUM"
  • "PREMIUM_SECONDARY"
  • "ALERT"
  • "ALERT_SECONDARY"
  • "INVERTED"

Primary (as opposed to secondary) buttons are for main actions.
Red alert buttons are for destructive actions like "Delete".
Purple premium buttons are for upgrade actions.
To view the different skin options, change the type of your panel button in the Blocks panel builder.

Type:

stringRead & Write

Was this helpful?

Get a button's skin

Copy Code
1let skin = $w("#myButton").skin; // "PREMIUM"
Set a button's skin

Copy Code
1$w("#myButton").skin = "PREMIUM";