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.
(js)
Background |
Type-safe definition of CSS background. class Background |
(js)
BgAttach |
Definitions of CSS background attachment options. enum class BgAttach |
(js)
BgClip |
Definitions of CSS background clipping options. enum class BgClip |
(js)
BgOrigin |
Definitions of CSS background origin options. enum class BgOrigin |
(js)
BgRepeat |
Definitions of CSS background repeat options. enum class BgRepeat |
(js)
BgSize |
Definitions of CSS background size. enum class BgSize |
(js)
Border |
Type-safe definition of CSS border. class Border |
(js)
BorderStyle |
Definitions of CSS border styles. enum class BorderStyle |
(js)
BsBgColor |
enum class BsBgColor |
(js)
BsBorder |
enum class BsBorder |
(js)
BsColor |
enum class BsColor |
(js)
BsRounded |
enum class BsRounded |
(js)
Clear |
Definitions of CSS clear options. enum class Clear |
(js)
Col |
Definitions of CSS color names. enum class Col |
(js)
Color |
Type-safe definition of CSS color. class Color |
(js)
Component |
Base interface for all components. interface Component |
(js)
Container |
Base interface for all containers. interface Container : Component |
(js)
CssSize |
This type is used for defining CSS dimensions (width, heights, margins, paddings, etc.). typealias CssSize = Pair<Number, UNIT> |
(js)
Cursor |
enum class Cursor |
(js)
Direction |
Definitions of CSS text direction options. enum class Direction |
(js)
Display |
Definitions of CSS display options. enum class Display |
(js)
FontStyle |
Definitions of CSS font style options. enum class FontStyle |
(js)
FontVariant |
Definitions of CSS font variant options. enum class FontVariant |
(js)
FontWeight |
Definitions of CSS font weight options. enum class FontWeight |
(js)
LineBreak |
Definitions of CSS line-break options. enum class LineBreak |
(js)
Overflow |
Definitions of CSS overflow options. enum class Overflow |
(js)
OverflowWrap |
Definitions of CSS overflow-wrap options. enum class OverflowWrap |
(js)
Placement |
Tooltip / Popover placements. enum class Placement |
(js)
PopoverOptions |
Popover options. data class PopoverOptions |
(js)
PosFloat |
Definitions of CSS float options. enum class PosFloat |
(js)
Position |
Definitions of CSS position options. enum class Position |
(js)
Resize |
Definitions of CSS resize options. enum class Resize |
(js)
ResString |
This type is used for accessing resources with CommonJS require function. typealias ResString = String |
(js)
StringBoolPair |
Helper type used to define CSS classes. typealias StringBoolPair = Pair<String, Boolean> |
(js)
StringPair |
Helper type used to define CSS style attributes. typealias StringPair = Pair<String, String> |
(js)
Style |
CSS style object. open class Style : StyledComponent |
(js)
StyledComponent |
Base class for components supporting CSS styling. abstract class StyledComponent |
(js)
TextAlign |
Definitions of CSS text align options. enum class TextAlign |
(js)
TextDecoration |
Type-safe definition of CSS text decoration. class TextDecoration |
(js)
TextDecorationLine |
Definitions of CSS text decoration line options. enum class TextDecorationLine |
(js)
TextDecorationStyle |
Definitions of CSS text decoration style options. enum class TextDecorationStyle |
(js)
TextOverflow |
Definitions of CSS text overflow options. enum class TextOverflow |
(js)
TextShadow |
Type-safe definition of CSS text shadow. class TextShadow |
(js)
TextTransform |
Definitions of CSS text transform options. enum class TextTransform |
(js)
TooltipOptions |
Tooltip options. data class TooltipOptions |
(js)
Trigger |
Tooltip / Popover triggers. enum class Trigger |
(js)
UnicodeBidi |
Definitions of CSS unicode-bidi options. enum class UnicodeBidi |
(js)
UNIT |
Definitions of CSS units. enum class UNIT |
(js)
VerticalAlign |
Definitions of CSS vertical align options. enum class VerticalAlign |
(js)
WhiteSpace |
Definitions of CSS white space options. enum class WhiteSpace |
(js)
Widget |
Base widget class. The parent of all component classes. open class Widget : StyledComponent, Component |
(js)
WidgetWrapper |
This class allows to wrap a component into separately styled DIV element. open class WidgetWrapper : SimplePanel |
(js)
WordBreak |
Definitions of CSS word-break options. enum class WordBreak |
(js)
addBsBgColor |
fun Component.addBsBgColor(bsBgColor: BsBgColor): Unit |
(js)
addBsBorder |
fun Component.addBsBorder(vararg bsBorder: BsBorder): Unit |
(js)
addBsClearfix |
fun Component.addBsClearfix(): Unit |
(js)
addBsColor |
fun Component.addBsColor(bsColor: BsColor): Unit |
(js)
addBsRounded |
fun Component.addBsRounded(vararg bsRounded: BsRounded): Unit |
(js)
onEvent |
fun <T : Widget> T.onEvent(block: SnOn<T>.() -> Unit): Int |
(js)
removeBsBgColor |
fun Component.removeBsBgColor(bsBgColor: BsBgColor): Unit |
(js)
removeBsBorder |
fun Component.removeBsBorder(vararg bsBorder: BsBorder): Unit |
(js)
removeBsClearfix |
fun Component.removeBsClearfix(): Unit |
(js)
removeBsColor |
fun Component.removeBsColor(bsColor: BsColor): Unit |
(js)
removeBsRounded |
fun Component.removeBsRounded(vararg bsRounded: BsRounded): Unit |
(js)
style |
DSL builder extension function. fun Widget.style(className: String? = null, init: (Style.() -> Unit)? = null): Style
DSL builder extension function for cascading styles. fun Style.style(className: String? = null, init: (Style.() -> Unit)? = null): Style |
(js)
toJs |
Convert TooltipOptions to JavaScript JSON object. fun TooltipOptions.toJs(): dynamic
Convert PopoverOptions to JavaScript JSON object. fun PopoverOptions.toJs(): dynamic |
(js)
widget |
DSL builder extension function. fun Container.widget(classes: Set<String> = setOf(), init: (Widget.() -> Unit)? = null): Widget |
(js)
widgetWrapper |
DSL builder extension function. fun Container.widgetWrapper(wrapped: Component?, classes: Set<String> = setOf(), init: (WidgetWrapper.() -> Unit)? = null): WidgetWrapper |