kvision / pl.treksoft.kvision.html

Package pl.treksoft.kvision.html

Components supporting complete set of HTML tags, with dedicated classes for buttons, images, links, lists and iframe. Support for Handlebars.js templates is included.

Types

Align

enum class Align

CSS align attributes.

Button

open class Button : Widget

Button component.

ButtonSize

enum class ButtonSize

Button sizes.

ButtonStyle

enum class ButtonStyle

Button styles.

ButtonType

enum class ButtonType

Button types.

Canvas

open class Canvas : Widget

Canvas component.

Div

open class Div : Tag

Simple component rendered as div.

Icon

open class Icon : Tag

Icon component with support for FontAwesome and Bootstrap glyphicons.

Iframe

open class Iframe : Widget

Iframe component.

Image

open class Image : Widget

Image component.

ImageShape

enum class ImageShape

Image shapes.

Label

open class Label : Tag

Simple label component rendered as span.

Link

open class Link : SimplePanel

Link component.

ListTag

open class ListTag : SimplePanel

HTML list component.

ListType

enum class ListType

HTML list types.

Sandbox

enum class Sandbox

Iframe sandbox options.

TAG

enum class TAG

HTML tags.

Tag

open class Tag : SimplePanel, Template

HTML tag component.

Template

interface Template

Handlebars templates helper interface.

Functions

setData

fun <K> Template.setData(obj: K, serializer: SerializationStrategy<K>): Unit
fun <K : Any> Template.setData(obj: K): Unit

Extension function to set serializable object as a template data.