Search.../

style

Gets an object containing information about the radio button group's styles.

Description

The following styles can be used with radio button groups:

Getting or setting a radio button group's styles, gets or sets the styles of the radio button group's regular state. It does not set the styles of the radio button group's hover, focus, error, or disabled states.

Type:

StyleRead Only

Was this helpful?

Set the background color

Copy Code
1$w("#myElement").style.backgroundColor = "rgba(255,0,0,0.5)";
Get the background color

Copy Code
1let bgColor = $w("#myElement").style.backgroundColor;