Opacity

live example

Explore the API in the live example.

api reference

Opacity()
Component implementing the opacity feature. This component allows for setting the opacity value of a widget's elements. When this component is available, its API is exposed directly via the widget's own namespace.
Opacity.opacity(value)
Sets the opacity value of the widget's elements.

Parameters

NameTypeDescription
valuenumberThe opacity value to set. The default value depends on the widget that has this component.

Returns

Widget
Reference to the Widget's API.
Opacity.value()
Returns the current opacity value.

Returns

number
The current opacity value.