Package-level declarations

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

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Tooltip / Popover placements.

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

Popover options.

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

Tooltip options.

Link copied to clipboard

Tooltip / Popover triggers.

Functions

Link copied to clipboard
Link copied to clipboard
fun Component.addBsBorder(vararg bsBorder: BsBorder)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Component.addBsRounded(vararg bsRounded: BsRounded)
Link copied to clipboard

Disables popover for the current widget.

Link copied to clipboard

Disables tooltip for the current widget.

Link copied to clipboard
fun Widget.enablePopover(options: PopoverOptions = PopoverOptions())

Enables popover for the current widget.

Link copied to clipboard
fun Widget.enableTooltip(options: TooltipOptions = TooltipOptions())

Enables tooltip for the current widget.

Link copied to clipboard

Hides popover for the current widget.

Link copied to clipboard

Hides tooltip for the current widget.

Link copied to clipboard
Link copied to clipboard
fun Component.removeBsBorder(vararg bsBorder: BsBorder)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Component.removeBsRounded(vararg bsRounded: BsRounded)
Link copied to clipboard

Shows popover for the current widget.

Link copied to clipboard

Shows tooltip for the current widget.

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

Convert PopoverOptions to JavaScript JSON object.

fun TooltipOptions.toJs(): dynamic

Convert TooltipOptions to JavaScript JSON object.