ToolBarButton.setRoundedCorners

Syntax

setRoundedCorners(value: PP.Ui.ToolBarButton.RoundedCorners);

Parameters

value. Determines the corner rounding version. This is an item of the RoundedCorners enumeration.

Description

The setRoundedCorners method sets the rounding corners version for the button.

Comments

By default, the All value is set for the Value parameter, that means that all corners are rounded.

Example

To execute the example, the HTML page must contain the ToolBar component named toolBar (see Example of Creating the ToolBar Component).

//Adds four buttons to the toolbar:

    toolBar.addItem(new PP.Ui.ToolBarButton({ Content: "1"

}));

    toolBar.addItem(new PP.Ui.ToolBarButton({ Content: "2"

}));

    toolBar.addItem(new PP.Ui.ToolBarButton({ Content: "3"

}));

    toolBar.addItem(new PP.Ui.ToolBarButton({ Content: "4"

}));

//Determines the corner rounding version for each button:

toolBar.getItem(0).setRoundedCorners("All");

toolBar.getItem(1).setRoundedCorners("Right");

toolBar.getItem(2).setRoundedCorners("None");

toolBar.getItem(3).setRoundedCorners("Left");

After executing the example four buttons with different corner rounding versions are put to the toolbar:

See also:

ToolBarButton