Class BorderStyle

Border Style

A class that represents a complete border style that can be applied to widgets.

To call an enum, you call its parent class, name, and property. For example, CardService.BorderStyle.NO_BORDER .

Methods

Method Return type Brief description
Border Style Sets the corner radius of the border, for example 8.
Border Style Sets the color of the border.
Border Style Sets the type of the border.

Detailed documentation

set Corner Radius(radius)

Sets the corner radius of the border, for example 8.

Parameters

Name Type Description
radius
Integer The corner radius to be applied to the border.

Return

Border Style — This object, for chaining.


set Stroke Color(color)

Sets the color of the border.

Parameters

Name Type Description
color
String The color in #RGB format to be applied to the border.

Return

Border Style — This object, for chaining.


set Type(type)

Sets the type of the border.

Parameters

Name Type Description
type
Border Type The border type.

Return

Border Style — This object, for chaining.

Design a Mobile Site
View Site in Mobile | Classic
Share by: