Package io.kvision.core

KVision core classes. This includes base interfaces for all components, CSS enums (for colors, borders, backgrounds, fonts, text and position) and the main Widget class.

Types

BsBgColor
Link copied to clipboard
enum BsBgColor : Enum<BsBgColor>
BsBorder
Link copied to clipboard
enum BsBorder : Enum<BsBorder>
BsColor
Link copied to clipboard
enum BsColor : Enum<BsColor>
BsRounded
Link copied to clipboard
enum BsRounded : Enum<BsRounded>
Placement
Link copied to clipboard
enum Placement : Enum<Placement>

Tooltip / Popover placements.

PopoverOptions
Link copied to clipboard
data class PopoverOptions(content: String?, title: String?, rich: Boolean?, animation: Boolean?, delay: Int?, hideDelay: Int?, placement: Placement?, triggers: List<Trigger>?, sanitize: Boolean?)

Popover options.

TooltipOptions
Link copied to clipboard
data class TooltipOptions(title: String?, rich: Boolean?, animation: Boolean?, delay: Int?, hideDelay: Int?, placement: Placement?, triggers: List<Trigger>?, sanitize: Boolean?)

Tooltip options.

Trigger
Link copied to clipboard
enum Trigger : Enum<Trigger>

Tooltip / Popover triggers.

Functions

addBsBgColor
Link copied to clipboard
fun <ERROR CLASS>.addBsBgColor(bsBgColor: BsBgColor)
addBsBorder
Link copied to clipboard
fun <ERROR CLASS>.addBsBorder(vararg bsBorder: BsBorder)
addBsClearfix
Link copied to clipboard
fun <ERROR CLASS>.addBsClearfix()
addBsColor
Link copied to clipboard
fun <ERROR CLASS>.addBsColor(bsColor: BsColor)
addBsRounded
Link copied to clipboard
fun <ERROR CLASS>.addBsRounded(vararg bsRounded: BsRounded)
disablePopover
Link copied to clipboard
fun <ERROR CLASS>.disablePopover(): <ERROR CLASS>

Disables popover for the current widget.

disableTooltip
Link copied to clipboard
fun <ERROR CLASS>.disableTooltip(): <ERROR CLASS>

Disables tooltip for the current widget.

enablePopover
Link copied to clipboard
fun <ERROR CLASS>.enablePopover(options: PopoverOptions = PopoverOptions()): <ERROR CLASS>

Enables popover for the current widget.

enableTooltip
Link copied to clipboard
fun <ERROR CLASS>.enableTooltip(options: TooltipOptions = TooltipOptions()): <ERROR CLASS>

Enables tooltip for the current widget.

hidePopover
Link copied to clipboard
fun <ERROR CLASS>.hidePopover(): <ERROR CLASS>

Hides popover for the current widget.

hideTooltip
Link copied to clipboard
fun <ERROR CLASS>.hideTooltip(): <ERROR CLASS>

Hides tooltip for the current widget.

removeBsBgColor
Link copied to clipboard
fun <ERROR CLASS>.removeBsBgColor(bsBgColor: BsBgColor)
removeBsBorder
Link copied to clipboard
fun <ERROR CLASS>.removeBsBorder(vararg bsBorder: BsBorder)
removeBsClearfix
Link copied to clipboard
fun <ERROR CLASS>.removeBsClearfix()
removeBsColor
Link copied to clipboard
fun <ERROR CLASS>.removeBsColor(bsColor: BsColor)
removeBsRounded
Link copied to clipboard
fun <ERROR CLASS>.removeBsRounded(vararg bsRounded: BsRounded)
showPopover
Link copied to clipboard
fun <ERROR CLASS>.showPopover(): <ERROR CLASS>

Shows popover for the current widget.

showTooltip
Link copied to clipboard
fun <ERROR CLASS>.showTooltip(): <ERROR CLASS>

Shows tooltip for the current widget.

toJs
Link copied to clipboard
fun PopoverOptions.toJs(): dynamic

Convert PopoverOptions to JavaScript JSON object.

fun TooltipOptions.toJs(): dynamic

Convert TooltipOptions to JavaScript JSON object.