Control.Opacity

Syntax

Opacity: Integer;

Description

The Opacity property determines component transparency.

Comments

Property value is set in the range between 0 and 1, where 0 is absolutely transparent and 1 is absolutely opaque.

Example

To execute the example, in the <head> tag of HTML page add links to the PP.js and PP.css files. Add a button on the page, set 50 % transparency for the button, define rotation angle and a tooltip:

 button = new PP.Ui.Button({
    ParentNode: document.body,
    Content: "Button",
    Opacity: 0.5,
    Rotate: 20,
    ShowToolTip: true,
    ToolTip: "Press"
 });

After executing the example a button is added on the page, with the configured transparency, tooltip and rotation angle equal to 20 degrees:

See also:

Control