AbstractTextInput

abstract class AbstractTextInput(value: String? = null, maxlength: Int? = null, className: String? = null) : Widget, GenericFormComponent<String?> , FormInput, MutableState<String?>

Base class for basic text components.

Parameters

value

text input value

maxlength

maximum length of the text input

className

CSS class names

Inheritors

Constructors

Link copied to clipboard
constructor(value: String? = null, maxlength: Int? = null, className: String? = null)

Properties

Link copied to clipboard

CSS flexbox/grid content alignment.

Link copied to clipboard

CSS flexbox/grid items alignment.

Link copied to clipboard

CSS flexbox items self-alignment.

Link copied to clipboard

Determines if the text input is automatically focused.

Link copied to clipboard

Background of the current component.

Link copied to clipboard
open var border: Border?

Border of the current component.

Link copied to clipboard
open var borderBottom: Border?

Bottom border of the current component.

Link copied to clipboard
open var borderLeft: Border?

Left border of the current component.

Link copied to clipboard
open var borderRadius: <Error class: unknown class><Number, UNIT>?

CSS border radius.

Link copied to clipboard
open var borderRadiusList: List<<Error class: unknown class><Number, UNIT>>?

List of CSS border radius values.

Link copied to clipboard
open var borderRight: Border?

Right border of the current component.

Link copied to clipboard
open var borderTop: Border?

Top border of the current component.

Link copied to clipboard
open var bottom: <Error class: unknown class><Number, UNIT>?

Bottom edge of the current component.

Link copied to clipboard
open var boxShadow: BoxShadow?

Box shadow of the current component.

Link copied to clipboard

List of box shadows of the current component.

Link copied to clipboard
open var clear: Clear?

CSS clear float of the current component.

Link copied to clipboard
open var color: Color?

Text color for the current component.

Link copied to clipboard
open var colorHex: Int?

Text color for the current component given in hex format (write only).

Link copied to clipboard
open var colorName: Col?

Text color for the current component given with named constant (write only).

Link copied to clipboard
open var cursor: Cursor?

CSS cursor shape over the current component.

Link copied to clipboard
open override var disabled: Boolean

Determines if the field is disabled.

Link copied to clipboard
open var display: Display?

CSS display of the current component.

Link copied to clipboard

Determines if the current widget is draggable.

Link copied to clipboard
Link copied to clipboard
open var flexBasis: <Error class: unknown class><Number, UNIT>?

CSS flexbox item basis.

Link copied to clipboard

CSS flexbox direction.

Link copied to clipboard
open var flexGrow: Int?

CSS flexbox item grow.

Link copied to clipboard
open var flexShrink: Int?

CSS flexbox item shrink.

Link copied to clipboard
open var flexWrap: FlexWrap?

CSS flexbox wrap mode.

Link copied to clipboard
open var float: PosFloat?

CSS position float of the current component.

Link copied to clipboard
open var fontFamily: String?

CSS font family of the current component.

Link copied to clipboard
open var fontSize: <Error class: unknown class><Number, UNIT>?

CSS font size of the current component.

Link copied to clipboard
open var fontStyle: FontStyle?

CSS font style of the current component.

Link copied to clipboard

CSS font variant of the current component.

Link copied to clipboard

CSS font weight of the current component.

Link copied to clipboard
open var gridArea: String?

CSS grid area.

Link copied to clipboard

CSS grid auto columns.

Link copied to clipboard

CSS grid auto flow.

Link copied to clipboard
open var gridAutoRows: String?

CSS grid auto rows.

Link copied to clipboard

CSS grid column end.

Link copied to clipboard
open var gridColumnGap: Int?

CSS grid column gap.

Link copied to clipboard
open var gridColumnStart: Int?

CSS grid column start.

Link copied to clipboard
open var gridRowEnd: String?

CSS grid row end.

Link copied to clipboard
open var gridRowGap: Int?

CSS grid row gap.

Link copied to clipboard
open var gridRowStart: Int?

CSS grid row start.

Link copied to clipboard

CSS grid areas template.

Link copied to clipboard

CSS grid columns template.

Link copied to clipboard

CSS grid rows template.

Link copied to clipboard
open var height: <Error class: unknown class><Number, UNIT>?

Height of the current component.

Link copied to clipboard
var id: String?

An ID attribute of generated HTML element.

Link copied to clipboard

CSS flexbox/grid content justification.

Link copied to clipboard

CSS grid items justification.

Link copied to clipboard

CSS grid items self-justification.

Link copied to clipboard
var kvscope: dynamic
Link copied to clipboard
open var left: <Error class: unknown class><Number, UNIT>?

Left edge of the current component.

Link copied to clipboard
open var letterSpacing: <Error class: unknown class><Number, UNIT>?

CSS Text letter spacing of the current component.

Link copied to clipboard
open var lineBreak: LineBreak?

CSS line break of the current component.

Link copied to clipboard
open var lineHeight: <Error class: unknown class><Number, UNIT>?

CSS Text line height of the current component.

Link copied to clipboard
open var listStyle: ListStyle?

List style of the current component.

Link copied to clipboard
open var margin: <Error class: unknown class><Number, UNIT>?

Margin of the current component.

Link copied to clipboard
open var marginBottom: <Error class: unknown class><Number, UNIT>?

Bottom margin of the current component.

Link copied to clipboard
open var marginLeft: <Error class: unknown class><Number, UNIT>?

Left margin of the current component.

Link copied to clipboard
open var marginRight: <Error class: unknown class><Number, UNIT>?

Right margin of the current component.

Link copied to clipboard
open var marginTop: <Error class: unknown class><Number, UNIT>?

Top margin of the current component.

Link copied to clipboard

The input mask options.

Link copied to clipboard
open var maxHeight: <Error class: unknown class><Number, UNIT>?

Maximal height of the current component.

Link copied to clipboard

Maximal length of the text input value.

Link copied to clipboard
open var maxWidth: <Error class: unknown class><Number, UNIT>?

Maximal width of the current component.

Link copied to clipboard
open var minHeight: <Error class: unknown class><Number, UNIT>?

Minimal height of the current component.

Link copied to clipboard
open var minWidth: <Error class: unknown class><Number, UNIT>?

Minimal width of the current component.

Link copied to clipboard
val <S> MutableState<S>.mutableStateFlow: <Error class: unknown class><S>

Extension property returning a MutableStateFlow for a MutableState.

Link copied to clipboard
open override var name: String?

The name attribute of the generated HTML input element.

Link copied to clipboard
open var opacity: Double?

Opacity of the current component.

Link copied to clipboard
open var order: Int?

CSS flexbox item order.

Link copied to clipboard
open var outline: Outline?

Outline of the current component.

Link copied to clipboard
open var overflow: Overflow?

CSS overflow of the current component.

Link copied to clipboard

CSS overflow-wrap of the current component.

Link copied to clipboard
open var overflowX: Overflow?

CSS overflow-x of the current component.

Link copied to clipboard
open var overflowY: Overflow?

CSS overflow-y of the current component.

Link copied to clipboard
open var padding: <Error class: unknown class><Number, UNIT>?

Padding of the current component.

Link copied to clipboard
open var paddingBottom: <Error class: unknown class><Number, UNIT>?

Bottom padding of the current component.

Link copied to clipboard
open var paddingLeft: <Error class: unknown class><Number, UNIT>?

Left padding of the current component.

Link copied to clipboard
open var paddingRight: <Error class: unknown class><Number, UNIT>?

Right padding of the current component.

Link copied to clipboard
open var paddingTop: <Error class: unknown class><Number, UNIT>?

Top padding of the current component.

Link copied to clipboard
open override var parent: Container?

Parent of the current component.

Link copied to clipboard

The placeholder for the text input.

Link copied to clipboard
Link copied to clipboard
var popoverOptions: dynamic
Link copied to clipboard
open var position: Position?

CSS position of the current component.

Link copied to clipboard

Determines if the text input is read-only.

Link copied to clipboard
open var resize: Resize?

CSS resize of the current component.

Link copied to clipboard
open var right: <Error class: unknown class><Number, UNIT>?

Right edge of the current component.

Link copied to clipboard
var role: String?

A role attribute of generated HTML element.

Link copied to clipboard
open override var size: InputSize?

The size of the input.

Link copied to clipboard

The value attribute of the generated HTML input element.

Link copied to clipboard
val <S> ObservableState<S>.stateFlow: <Error class: unknown class><S>

Extension property returning a StateFlow for an ObservableState.

Link copied to clipboard

A tabindex attribute of generated HTML element.

Link copied to clipboard
open var textAlign: TextAlign?

CSS Text align of the current component.

Link copied to clipboard

CSS Text decoration of the current component.

Link copied to clipboard

CSS Text direction of the current component.

Link copied to clipboard
open var textIndent: <Error class: unknown class><Number, UNIT>?

CSS Text indent of the current component.

Link copied to clipboard

CSS Text overflow of the current component.

Link copied to clipboard

CSS Text shadow of the current component.

Link copied to clipboard

CSS Text transform of the current component.

Link copied to clipboard

A title attribute of generated HTML element.

Link copied to clipboard
Link copied to clipboard
var tooltipOptions: dynamic
Link copied to clipboard
open var top: <Error class: unknown class><Number, UNIT>?

Top edge of the current component.

Link copied to clipboard

CSS transition effect for the current component.

Link copied to clipboard

List of CSS transition effects for the current component.

Link copied to clipboard

CSS Text unicode-bidi of the current component.

Link copied to clipboard

The validation status of the input.

Link copied to clipboard
open override var value: String?

Text input value.

Link copied to clipboard

CSS Text vertical align of the current component.

Link copied to clipboard
open override var visible: Boolean

Visibility state of the current component.

Link copied to clipboard

CSS Text white space of the current component.

Link copied to clipboard
open var width: <Error class: unknown class><Number, UNIT>?

Width of the current component.

Link copied to clipboard
open var wordBreak: WordBreak?

CSS word break of the current component.

Link copied to clipboard
open var wordSpacing: <Error class: unknown class><Number, UNIT>?

CSS Text word spacing of the current component.

Link copied to clipboard
open var zIndex: Int?

Z-index of the current component.

Functions

Link copied to clipboard
open override fun addAfterCreateHook(hook: (VNode) -> Unit): <Error class: unknown class>

The supplied function is called after the widget DOM element is created.

Link copied to clipboard
open override fun addAfterDestroyHook(hook: () -> Unit): <Error class: unknown class>

The supplied function is called after the widget is removed from the DOM.

Link copied to clipboard
open override fun addAfterInsertHook(hook: (VNode) -> Unit): <Error class: unknown class>

The supplied function is called after the widget is inserted into the DOM.

Link copied to clipboard
open override fun addBeforeDisposeHook(hook: () -> Unit): <Error class: unknown class>

The supplied function is called before the widget is disposed.

Link copied to clipboard
Link copied to clipboard
fun Component.addBsBorder(vararg bsBorder: BsBorder)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Component.addBsRounded(vararg bsRounded: BsRounded)
Link copied to clipboard
open override fun addCssClass(css: String)

Adds given value to the set of CSS classes generated in html code of current component.

Link copied to clipboard
open override fun addCssStyle(css: Style)

Adds given style object to the set of CSS classes generated in html code of current component.

Link copied to clipboard
open override fun addSurroundingCssClass(css: String)

Adds given value to the set of CSS classes generated in html code of parent component.

Link copied to clipboard
open override fun addSurroundingCssStyle(css: Style)

Adds given style object to the set of CSS classes generated in html code of parent component.

Link copied to clipboard
fun Widget.animate(duration: Int = 400, easing: Easing = Easing.SWING, complete: () -> Unit? = null, styles: StyledComponent.() -> Unit)

Animate the widget changing CSS properties.

Link copied to clipboard
open fun blur()

Makes the element blur.

Link copied to clipboard
open override fun clearAfterCreateHooks()

Remove all after create hooks functions.

Link copied to clipboard
open override fun clearAfterDestroyHooks()

Remove all after destroy hooks functions.

Link copied to clipboard
open override fun clearAfterInsertHooks()

Remove all after insert hooks functions.

Link copied to clipboard
open override fun clearBeforeDisposeHooks()

Remove all before dispose hooks functions.

Link copied to clipboard

Clears D&D data for the current widget. It also makes it not draggable.

Link copied to clipboard
fun Widget.contextMenu(fixedPosition: Boolean = false, className: String? = null, init: ContextMenu.() -> Unit? = null): ContextMenu

DSL builder extension function.

Link copied to clipboard

Disables popover for the current widget.

Link copied to clipboard

Disables tooltip for the current widget.

Link copied to clipboard
open fun dispatchEvent(type: String, eventInitDict: <Error class: unknown class>): Boolean?

Dispatches a custom event.

Link copied to clipboard

Enable gesture detector for a given Widget.

Link copied to clipboard
fun Widget.enablePopover(options: PopoverOptions = PopoverOptions())

Enables popover for the current widget.

Link copied to clipboard
fun Widget.enableTooltip(options: TooltipOptions = TooltipOptions())

Enables tooltip for the current widget.

Link copied to clipboard
fun Widget.fadeIn(duration: Int = 400, easing: Easing = Easing.SWING, complete: () -> Unit? = null)

Shows current widget with fade in effect.

Link copied to clipboard
fun Widget.fadeOut(duration: Int = 400, easing: Easing = Easing.SWING, complete: () -> Unit? = null)

Hides current widget with fade out effect.

Link copied to clipboard
open fun focus()

Makes the element focused.

Link copied to clipboard
open override fun getAttribute(name: String): String?

Returns the value of an additional attribute.

Link copied to clipboard
open override fun getElement(): <Error class: unknown class>?

Returns DOM element bound to the current component.

Link copied to clipboard
open override fun getElementD(): dynamic

Returns DOM element bound to the current component as a dynamic type.

Link copied to clipboard
fun Component.getElementJQuery(): <Error class: unknown class>?

Returns JQuery element bound to the current component.

Link copied to clipboard

Returns JQuery element bound to the current component as a dynamic type.

Link copied to clipboard
open fun getSnStyle(): dynamic

Returns CSS style attributes.

Link copied to clipboard
open override fun getState(): String?

Get current state.

Link copied to clipboard
fun getStyle(name: String): String?

Returns the value of a custom CSS style.

Link copied to clipboard
open override fun hasCssClass(css: String): Boolean

Checks whether the given value is present in the set of CSS classes.

Link copied to clipboard
open fun hide()

Makes current widget invisible.

Link copied to clipboard
fun Widget.hideAnim(duration: Int = 400, easing: Easing = Easing.SWING, complete: () -> Unit? = null)

Hides current widget with animation effect.

Link copied to clipboard

Hides popover for the current widget.

Link copied to clipboard

Hides tooltip for the current widget.

Link copied to clipboard
fun Widget.inheritingStyle(selector: String? = null, pClass: PClass? = null, pElement: PElement? = null, mediaQuery: String? = null, parentStyle: Style? = null, init: InheritingStyle.() -> Unit? = null): InheritingStyle

DSL builder extension function.

Link copied to clipboard
open fun installMask()

Install the input mask controller.

Link copied to clipboard
open override fun removeAfterCreateHook(hook: (VNode) -> Unit): Boolean

Remove the after create hook function (the same function reference must be used).

Link copied to clipboard
open override fun removeAfterDestroyHook(hook: () -> Unit): Boolean

Remove the after destroy hook function (the same function reference must be used).

Link copied to clipboard
open override fun removeAfterInsertHook(hook: (VNode) -> Unit): Boolean

Remove the after insert hook function (the same function reference must be used).

Link copied to clipboard
open override fun removeAttribute(name: String)

Removes the value of additional attribute.

Link copied to clipboard
open override fun removeBeforeDisposeHook(hook: () -> Unit): Boolean

Remove the before dispose hook function (the same function reference must be used).

Link copied to clipboard
Link copied to clipboard
fun Component.removeBsBorder(vararg bsBorder: BsBorder)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Component.removeBsRounded(vararg bsRounded: BsRounded)
Link copied to clipboard
open override fun removeCssClass(css: String)

Removes given value from the set of CSS classes generated in html code of current component.

Link copied to clipboard
open override fun removeCssStyle(css: Style)

Removes given style object from the set of CSS classes generated in html code of current component.

Link copied to clipboard
open fun removeEventListener(id: Int)

Removes event listener from current widget.

Link copied to clipboard

Removes all event listeners from current widget.

Link copied to clipboard
fun removeStyle(name: String)

Removes the value of a custom CSS style.

Link copied to clipboard
open override fun removeSurroundingCssClass(css: String)

Removes given value from the set of CSS classes generated in html code of parent component.

Link copied to clipboard
open override fun removeSurroundingCssStyle(css: Style)

Removes given style object from the set of CSS classes generated in html code of parent component.

Link copied to clipboard
open override fun setAttribute(name: String, value: String)

Sets the value of additional attribute.

Link copied to clipboard

Sets context menu for the current widget.

Link copied to clipboard
open fun setDragDropData(format: String, data: String)

Sets D&D data for the current widget. It also makes it draggable.

Link copied to clipboard
open fun setDropTarget(format: String, callback: (<Error class: unknown class>) -> Unit)
open fun setDropTarget(formats: Set<String>? = null, callback: (<Error class: unknown class>) -> Unit)

Sets the current widget as a D&D drop target.

Link copied to clipboard
open fun setDropTargetData(format: String, callback: (String?) -> Unit)

Sets the current widget as a D&D drop target with helper callback accepting String data.

Link copied to clipboard
open fun <T : Widget> setEventListener(block: SnOn<T>.() -> Unit): Int

Sets an event listener for current widget, keeping the actual type of component.

Link copied to clipboard
open override fun setState(state: String?)

Set current state.

Link copied to clipboard
fun setStyle(name: String, value: String)

Sets the value of a custom CSS style.

Link copied to clipboard
open fun show()

Makes current widget visible.

Link copied to clipboard
fun Widget.showAnim(duration: Int = 400, easing: Easing = Easing.SWING, complete: () -> Unit? = null)

Shows current widget with animation effect.

Link copied to clipboard

Shows popover for the current widget.

Link copied to clipboard

Shows tooltip for the current widget.

Link copied to clipboard
open override fun <T> singleRender(block: () -> T): T

Executes given function within a single rendering process.

Link copied to clipboard
open override fun singleRenderAsync(block: () -> Unit)

Executes given function within a single rendering process asynchronously.

Link copied to clipboard
fun Widget.slideDown(duration: Int = 400, easing: Easing = Easing.SWING, complete: () -> Unit? = null)

Shows current widget with slide down effect.

Link copied to clipboard
fun Widget.slideUp(duration: Int = 400, easing: Easing = Easing.SWING, complete: () -> Unit? = null)

Hides current widget with slide up effect.

Link copied to clipboard
fun Widget.style(selector: String? = null, pClass: PClass? = null, pElement: PElement? = null, mediaQuery: String? = null, init: Style.() -> Unit? = null): Style

DSL builder extension function.

Link copied to clipboard
fun <S, T> ObservableState<S>.sub(contextWidget: Widget? = null, extractor: (S) -> T): ObservableState<T>

Returns a sub-store of the original ObservableState

Link copied to clipboard
open override fun subscribe(observer: (String?) -> Unit): () -> Unit

Subscribe for the state change notifications. Calls the observer with the current state.

Link copied to clipboard
open fun toggleVisible()

Toggles visibility of current widget.

Link copied to clipboard
open fun translate(text: String): String
open fun translate(text: String?): String?

Translates given text with I18n trans function and sets lastLanguage marker.

Link copied to clipboard
open fun uninstallMask()

Uninstall the input mask controller.

Link copied to clipboard

Makes the component use distinct snabbdom key.