Components supporting complete set of HTML tags, with dedicated classes for buttons, images, links, lists and iframe. Support for Handlebars.js templates is included.
enum class Align
CSS align attributes. |
|
open class Bold : Tag
Simple component rendered as b. |
|
open class Button : Widget
Button component. |
|
enum class ButtonSize
Button sizes. |
|
enum class ButtonStyle
Button styles. |
|
enum class ButtonType
Button types. |
|
open class Canvas : Widget
Canvas component. |
|
open class Div : Tag
Simple component rendered as div. |
|
open class Footer : Tag
Simple component rendered as footer. |
|
open class H1 : Tag
Simple component rendered as h1. |
|
open class H2 : Tag
Simple component rendered as h2. |
|
open class H3 : Tag
Simple component rendered as h3. |
|
open class H4 : Tag
Simple component rendered as h4. |
|
open class H5 : Tag
Simple component rendered as h5. |
|
open class H6 : Tag
Simple component rendered as h6. |
|
open class Header : Tag
Simple component rendered as header. |
|
open class Icon : Tag
Icon component with support for FontAwesome and Bootstrap glyphicons. |
|
open class Iframe : Widget
Iframe component. |
|
open class Image : Widget
Image component. |
|
enum class ImageShape
Image shapes. |
|
open class Link : SimplePanel
Link component. |
|
open class ListTag : SimplePanel
HTML list component. |
|
enum class ListType
HTML list types. |
|
open class Main : Tag
Simple component rendered as main. |
|
open class P : Tag
Simple component rendered as p. |
|
enum class Sandbox
Iframe sandbox options. |
|
open class Section : Tag
Simple component rendered as section. |
|
open class Span : Tag
Simple component rendered as span. |
|
enum class TAG
HTML tags. |
|
open class Tag : SimplePanel, Template
HTML tag component. |
|
interface Template
Handlebars templates helper interface. |
fun Container.bold(content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: (Bold.() -> Unit)? = null): Bold
DSL builder extension function. |
|
fun Container.button(text: String, icon: String? = null, style: ButtonStyle = ButtonStyle.PRIMARY, type: ButtonType = ButtonType.BUTTON, disabled: Boolean = false, classes: Set<String> = setOf(), init: (Button.() -> Unit)? = null): Button
DSL builder extension function. |
|
fun Container.canvas(canvasWidth: Int? = null, canvasHeight: Int? = null, classes: Set<String> = setOf(), init: (Canvas.() -> Unit)? = null): Canvas
DSL builder extension function. |
|
fun Container.div(content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: (Div.() -> Unit)? = null): Div
DSL builder extension function. |
|
fun Container.footer(: String? = null, : Boolean = false, : Align? = null, : Set<String> = setOf(), : (Footer.() -> Unit)? = null): Footer
DSL builder extension function. |
|
fun Container.h1(content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: (H1.() -> Unit)? = null): H1
DSL builder extension function. |
|
fun Container.h2(content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: (H2.() -> Unit)? = null): H2
DSL builder extension function. |
|
fun Container.h3(content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: (H3.() -> Unit)? = null): H3
DSL builder extension function. |
|
fun Container.h4(content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: (H4.() -> Unit)? = null): H4
DSL builder extension function. |
|
fun Container.h5(content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: (H5.() -> Unit)? = null): H5
DSL builder extension function. |
|
fun Container.h6(content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: (H6.() -> Unit)? = null): H6
DSL builder extension function. |
|
fun Container.header(content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: (Header.() -> Unit)? = null): Header
DSL builder extension function. |
|
fun Container.icon(icon: String, init: (Icon.() -> Unit)? = null): Icon
DSL builder extension function. |
|
fun Container.iframe(src: String? = null, srcdoc: String? = null, name: String? = null, iframeWidth: Int? = null, iframeHeight: Int? = null, sandbox: Set<Sandbox>? = null, classes: Set<String> = setOf(), init: (Iframe.() -> Unit)? = null): Iframe
DSL builder extension function. |
|
fun Container.image(src: ResString, alt: String? = null, responsive: Boolean = false, shape: ImageShape? = null, centered: Boolean = false, classes: Set<String> = setOf(), init: (Image.() -> Unit)? = null): Image
DSL builder extension function. |
|
fun Container.link(label: String, url: String? = null, icon: String? = null, image: ResString? = null, classes: Set<String> = setOf(), init: (Link.() -> Unit)? = null): Link
DSL builder extension function. |
|
fun Container.listTag(type: ListType, elements: List<String>? = null, rich: Boolean = false, classes: Set<String> = setOf(), init: (ListTag.() -> Unit)? = null): ListTag
DSL builder extension function. |
|
fun Container.main(content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: (Main.() -> Unit)? = null): Main
DSL builder extension function. |
|
fun Container.p(content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: (P.() -> Unit)? = null): P
DSL builder extension function. |
|
fun Container.section(content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: (Section.() -> Unit)? = null): Section
DSL builder extension function. |
|
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. |
|
fun Container.span(content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: (Span.() -> Unit)? = null): Span
DSL builder extension function. |
|
fun Container.tag(type: TAG, content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), attributes: Map<String, String> = mapOf(), init: (Tag.() -> Unit)? = null): Tag
DSL builder extension function. |