kvision / pl.treksoft.kvision.core / Border

Border

class Border

Type-safe definition of CSS border.

Constructors

<init>

Border(width: CssSize? = null, style: BorderStyle? = null)

Creates CSS Border with given width and style.

Border(width: CssSize? = null, style: BorderStyle? = null, color: Int)

Creates CSS Border with given width, style and color given in hex format.

Border(width: CssSize? = null, style: BorderStyle? = null, color: Col)

Creates CSS Border with given width, style and color given with named constant.

Functions

toString

fun toString(): String

Extension Functions

createInstance

fun <T> Any?.createInstance(vararg args: dynamic): T

Helper function for creating JavaScript objects from dynamic constructors.