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.

Footer

open class Footer : Tag

Simple component rendered as footer.

H1

open class H1 : Tag

Simple component rendered as h1.

H2

open class H2 : Tag

Simple component rendered as h2.

H3

open class H3 : Tag

Simple component rendered as h3.

H4

open class H4 : Tag

Simple component rendered as h4.

H5

open class H5 : Tag

Simple component rendered as h5.

H6

open class H6 : Tag

Simple component rendered as h6.

Header

open class Header : Tag

Simple component rendered as header.

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 : Span

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.

P

open class P : Tag

Simple component rendered as p.

Sandbox

enum class Sandbox

Iframe sandbox options.

Section

open class Section : Tag

Simple component rendered as section.

Span

open class Span : Tag

Simple component rendered as span.

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.