Badge

open class Badge(var content: String? = null, bsColor: BsColor = BsColor.SECONDARYBG, rounded: Boolean = false, position: BadgePosition? = null, init: Badge.() -> Unit = {})

Creates a badge for the parent component. One component can have multiple badges.

Author

André Harnisch

Parameters

content

element text

bsColor

color theming

rounded

more rounded style

position

relative position of the badge; parent component need to have class 'position-relative'

init

an initializer extension function

See also

Constructors

Link copied to clipboard
constructor(content: String? = null, bsColor: BsColor = BsColor.SECONDARYBG, rounded: Boolean = false, position: BadgePosition? = null, init: Badge.() -> Unit = {})

Properties

Link copied to clipboard
open var content: String?