Skip to content

RoundedCorners

MikhailTymchukDX edited this page Apr 29, 2016 · 2 revisions

RoundedCornersExtender (demo)

The RoundedCorners extender applies rounded corners to existing elements.

Properties

Name Description
BorderColor Color of the border
Color Background color of the rounded corner areas
Remarks: By default, this property gets the background color of the panel that it is attached to
Corners The corners of the target panel that should be rounded
Remarks: Possible values: * None * TopLeft * TopRight * BottomRight * BottomLeft * Top * Right * Bottom * Left * All
Radius Radius of the corners (and height of the added area). The default is 5

Client properties

Name Description
borderColor A string that contains the color of the border and therefore of the rounded corners
color A string that contains the background color of the rounded corner areas
corners A Sys.Extended.UI.BoxCorners object that specifies which corners should be rounded
radius An integer value that specifies the radius of the corners (and the height of the added area). The default is 5 The default is 5

Client methods

Name Description
getBackgroundColor() Returns the background color of the target element
isCornerSet(corner) Checks whether a flag for this corner has been set
setCorner(corner, value) Sets a corner as one that should be rounded

Client properties

color

A string that contains the background color of the rounded corner areas

Remarks: By default, this property gets the background color of the panel that it is attached to

Getter name: get_color()
Setter name: set_color(value)

radius

An integer value that specifies the radius of the corners (and the height of the added area). The default is 5 The default is 5

Getter name: get_radius()
Setter name: set_radius(value)

corners

A Sys.Extended.UI.BoxCorners object that specifies which corners should be rounded

Getter name: get_corners()
Setter name: set_corners(value)

borderColor

A string that contains the color of the border and therefore of the rounded corners

Getter name: get_borderColor()
Setter name: set_borderColor(value)

Client methods

getBackgroundColor()

Returns the background color of the target element

isCornerSet(corner)

Checks whether a flag for this corner has been set

Params:

  • corner
    • Type: Sys.Extended.UI.BoxCorners
    • Description: Corner to check

setCorner(corner, value)

Sets a corner as one that should be rounded

Params:

  • corner

    • Type: Sys.Extended.UI.BoxCorners
    • Description: Corner to set
  • value

    • Type: Boolean
    • Description: True to set the value, false to clear it
Clone this wiki locally