kvision / pl.treksoft.kvision.form.text / RichTextInput

RichTextInput

open class RichTextInput : AbstractTextInput

Basic rich text component.

Constructors

<init>

RichTextInput(value: String? = null, classes: Set<String> = setOf())

Inherited Properties

autofocus

var autofocus: Boolean?

Determines if the text input is automatically focused.

disabled

open var disabled: Boolean

Determines if the field is disabled.

maxlength

var maxlength: Int?

Maximal length of the text input value.

name

open var name: String?

The name attribute of the generated HTML input element.

placeholder

var placeholder: String?

The placeholder for the text input.

readonly

var readonly: Boolean?

Determines if the text input is read-only.

size

open var size: InputSize?

The size of the input.

startValue

var startValue: String?

The value attribute of the generated HTML input element.

validationStatus

open var validationStatus: ValidationStatus?

The validation status of the input.

value

var value: String?

Text input value.

Functions

afterDestroy

open fun afterDestroy(): Unit

Method called after destroying Snabbdom vnode.

afterInsert

open fun afterInsert(node: VNode): Unit

Method called after inserting Snabbdom vnode into the DOM.

getSnAttrs

open fun getSnAttrs(): List<StringPair>

Returns list of element attributes in the form of a List.

render

open fun render(): VNode

Renders current component as a Snabbdom vnode.

Inherited Functions

blur

open fun blur(): Unit

Makes the input element blur.

focus

open fun focus(): Unit

Makes the input element focused.

getSnClass

open fun getSnClass(): List<StringBoolPair>

Returns list of CSS class names for current widget in the form of a List.

Extension Functions

addBsBgColor

fun Component.addBsBgColor(bsBgColor: BsBgColor): Unit

addBsBorder

fun Component.addBsBorder(vararg bsBorder: BsBorder): Unit

addBsClearfix

fun Component.addBsClearfix(): Unit

addBsColor

fun Component.addBsColor(bsColor: BsColor): Unit

addBsRounded

fun Component.addBsRounded(vararg bsRounded: BsRounded): Unit

contextMenu

fun Widget.contextMenu(fixedPosition: Boolean = false, classes: Set<String> = setOf(), init: (ContextMenu.() -> Unit)? = null): ContextMenu

DSL builder extension function.

createInstance

fun <T> Any?.createInstance(vararg args: dynamic): T

Helper function for creating JavaScript objects from dynamic constructors.

removeBsBgColor

fun Component.removeBsBgColor(bsBgColor: BsBgColor): Unit

removeBsBorder

fun Component.removeBsBorder(vararg bsBorder: BsBorder): Unit

removeBsClearfix

fun Component.removeBsClearfix(): Unit

removeBsColor

fun Component.removeBsColor(bsColor: BsColor): Unit

removeBsRounded

fun Component.removeBsRounded(vararg bsRounded: BsRounded): Unit

setContextMenu

fun Widget.setContextMenu(contextMenu: ContextMenu): Widget

Sets context menu for the current widget.

style

fun Widget.style(className: String? = null, init: (Style.() -> Unit)? = null): Style

DSL builder extension function.