MdFilledTextField

open class MdFilledTextField(disabled: Boolean = false, error: Boolean = false, errorText: String? = null, label: String? = null, required: Boolean = false, value: String? = null, prefixText: String? = null, suffixText: String? = null, supportingText: String? = null, rows: Int = 2, cols: Int = 20, inputMode: TextFieldInputMode? = null, max: TextFieldRangeConstraint? = null, maxLength: Int = -1, min: TextFieldRangeConstraint? = null, minLength: Int = -1, pattern: String? = null, placeholder: String? = null, readOnly: Boolean = false, multiple: Boolean = false, step: Number? = null, type: TextFieldInputType = TextFieldInputType.Text, autoComplete: Autocomplete? = null, name: String? = null, validationMessage: String? = null, className: String? = null, init: MdFilledTextField.() -> Unit? = null) : MdTextField(source)

Filled text field type.

Author

Maanrifa Bacar Ali

Constructors

Link copied to clipboard
constructor(disabled: Boolean = false, error: Boolean = false, errorText: String? = null, label: String? = null, required: Boolean = false, value: String? = null, prefixText: String? = null, suffixText: String? = null, supportingText: String? = null, rows: Int = 2, cols: Int = 20, inputMode: TextFieldInputMode? = null, max: TextFieldRangeConstraint? = null, maxLength: Int = -1, min: TextFieldRangeConstraint? = null, minLength: Int = -1, pattern: String? = null, placeholder: String? = null, readOnly: Boolean = false, multiple: Boolean = false, step: Number? = null, type: TextFieldInputType = TextFieldInputType.Text, autoComplete: Autocomplete? = null, name: String? = null, validationMessage: String? = null, className: String? = null, init: MdFilledTextField.() -> Unit? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Describes what, if any, type of autocomplete functionality the input should provide. https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete

Link copied to clipboard
Link copied to clipboard
open var border: Border?
Link copied to clipboard
open var borderBottom: Border?
Link copied to clipboard
open var borderLeft: Border?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var borderRight: Border?
Link copied to clipboard
open var borderTop: Border?
Link copied to clipboard
open var bottom: CssSize?
Link copied to clipboard
open var boxShadow: BoxShadow?
Link copied to clipboard
Link copied to clipboard
open var clear: Clear?
Link copied to clipboard
open var color: Color?
Link copied to clipboard
open var colorHex: Int?
Link copied to clipboard
open var colorName: Col?
Link copied to clipboard
var cols: Int

The number of cols to display for a TextFieldInputType.TextArea text field.

Link copied to clipboard
open var cursor: Cursor?
Link copied to clipboard

Whether or not the widget is disabled.

Link copied to clipboard
open var display: Display?
Link copied to clipboard
Link copied to clipboard

Gets or sets whether or not the text field is in a visually invalid state. This error state overrides the error state controlled by reportValidity.

Link copied to clipboard

The error message that replaces supporting text when error is true. If errorText is an empty string, then the supporting text will continue to show. This error message overrides the error message displayed by reportValidity.

Link copied to clipboard
Link copied to clipboard
open var flexBasis: CssSize?
Link copied to clipboard
Link copied to clipboard
open var flexGrow: Int?
Link copied to clipboard
open var flexShrink: Int?
Link copied to clipboard
open var flexWrap: FlexWrap?
Link copied to clipboard
open var float: PosFloat?
Link copied to clipboard
open var fontFamily: String?
Link copied to clipboard
open var fontSize: CssSize?
Link copied to clipboard
open var fontStyle: FontStyle?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The associated form element with which this element's value will submit.

Link copied to clipboard
open var gridArea: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var gridAutoRows: String?
Link copied to clipboard
Link copied to clipboard
open var gridColumnGap: Int?
Link copied to clipboard
open var gridColumnStart: Int?
Link copied to clipboard
open var gridRowEnd: String?
Link copied to clipboard
open var gridRowGap: Int?
Link copied to clipboard
open var gridRowStart: Int?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var height: CssSize?
Link copied to clipboard
var id: String?
Link copied to clipboard

Hints at the type of data that might be entered by the user while editing the element or its contents. This allows a browser to display an appropriate virtual keyboard. https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/inputmode

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var kvscope: dynamic
Link copied to clipboard

Label of the text field.

Link copied to clipboard

The labels this element is associated with.

Link copied to clipboard
open var left: CssSize?
Link copied to clipboard
Link copied to clipboard
open var lineBreak: LineBreak?
Link copied to clipboard
open var lineHeight: CssSize?
Link copied to clipboard
open var listStyle: ListStyle?
Link copied to clipboard
open var margin: CssSize?
Link copied to clipboard
Link copied to clipboard
open var marginLeft: CssSize?
Link copied to clipboard
open var marginRight: CssSize?
Link copied to clipboard
open var marginTop: CssSize?
Link copied to clipboard

Defines the greatest value in the range of permitted values. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#max

Link copied to clipboard
open var maxHeight: CssSize?
Link copied to clipboard

The maximum number of characters a user can enter into the text field. Set to -1 for none. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#maxlength

Link copied to clipboard
open var maxWidth: CssSize?
Link copied to clipboard

Defines the most negative value in the range of permitted values. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#min

Link copied to clipboard
open var minHeight: CssSize?
Link copied to clipboard

The minimum number of characters a user can enter into the text field. Set to -1 for none. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#minlength

Link copied to clipboard
open var minWidth: CssSize?
Link copied to clipboard

Indicates that input accepts multiple email addresses. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/email#multiple

Link copied to clipboard
var name: String?

The name to use in form submission.

Link copied to clipboard
open var opacity: Double?
Link copied to clipboard
open var order: Int?
Link copied to clipboard
open var outline: Outline?
Link copied to clipboard
open var overflow: Overflow?
Link copied to clipboard
Link copied to clipboard
open var overflowX: Overflow?
Link copied to clipboard
open var overflowY: Overflow?
Link copied to clipboard
open var padding: CssSize?
Link copied to clipboard
Link copied to clipboard
open var paddingLeft: CssSize?
Link copied to clipboard
Link copied to clipboard
open var paddingTop: CssSize?
Link copied to clipboard
open override var parent: Container?
Link copied to clipboard

A regular expression that the text field's value must match to pass constraint validation. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#pattern

Link copied to clipboard

Defines the text displayed in a form control when the text field has no value. https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/placeholder

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

An optional prefix to display before the input value.

Link copied to clipboard

Indicates whether or not a user should be able to edit the text field's value. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#readonly

Link copied to clipboard

Indicates that the component must provides a valid value when participating in form submission.

Link copied to clipboard
open var resize: Resize?
Link copied to clipboard
open var right: CssSize?
Link copied to clipboard
var role: String?
Link copied to clipboard
var rows: Int

The number of rows to display for a TextFieldInputType.TextArea text field.

Link copied to clipboard

The direction in which selection occurred.

Link copied to clipboard

The end position or offset of a text selection.

Link copied to clipboard

The starting position or offset of a text selection.

Link copied to clipboard
var step: Number?

Returns or sets the element's step attribute, which works with min and max to limit the increments at which a numeric or date-time value can be set. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#step

Link copied to clipboard

An optional suffix to display after the input value.

Link copied to clipboard

Conveys additional information below the text field, such as how it should be used.

Link copied to clipboard
Link copied to clipboard
open var textAlign: TextAlign?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var textIndent: CssSize?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var tooltipOptions: dynamic
Link copied to clipboard
open var top: CssSize?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The type to use, defaults to "text". The type greatly changes how the text field behaves.

Link copied to clipboard
Link copied to clipboard

Message to display when the component value is not valid.

Link copied to clipboard

Gets the element's current validity state.

Link copied to clipboard

The value that is submitted to the form.

Link copied to clipboard

The text field's value as a Date.

Link copied to clipboard

The text field's value as a number.

Link copied to clipboard
Link copied to clipboard
open override var visible: Boolean
Link copied to clipboard
Link copied to clipboard
open var width: CssSize?
Link copied to clipboard

Indicates that the element is a candidate for constraint validation.

Link copied to clipboard
open var wordBreak: WordBreak?
Link copied to clipboard
open var wordSpacing: CssSize?
Link copied to clipboard
open var zIndex: Int?

Functions

Link copied to clipboard
open override fun addAfterCreateHook(hook: (VNode) -> Unit): Boolean
Link copied to clipboard
open override fun addAfterDestroyHook(hook: () -> Unit): Boolean
Link copied to clipboard
open override fun addAfterInsertHook(hook: (VNode) -> Unit): Boolean
Link copied to clipboard
open override fun addBeforeDisposeHook(hook: () -> Unit): Boolean
Link copied to clipboard
open override fun addCssClass(css: String)
Link copied to clipboard
open override fun addCssStyle(css: Style)
Link copied to clipboard
open override fun addSurroundingCssClass(css: String)
Link copied to clipboard
open override fun addSurroundingCssStyle(css: Style)
Link copied to clipboard
open fun blur()
Link copied to clipboard

Indicates the validity of the value of the element. If the value is invalid, this method also fires the invalid event on the element.

Link copied to clipboard
open override fun clearAfterCreateHooks()
Link copied to clipboard
open override fun clearAfterDestroyHooks()
Link copied to clipboard
open override fun clearAfterInsertHooks()
Link copied to clipboard
open override fun clearBeforeDisposeHooks()
Link copied to clipboard
Link copied to clipboard
open override fun clearParent()
Link copied to clipboard
open fun dispatchEvent(type: String, eventInitDict: CustomEventInit): Boolean?
Link copied to clipboard
open override fun dispose()
Link copied to clipboard
open fun focus()
Link copied to clipboard
open override fun getAttribute(name: String): String?
Link copied to clipboard
open override fun getElement(): HTMLElement?
Link copied to clipboard
open override fun getElementD(): dynamic
Link copied to clipboard
open override fun getRoot(): Root?
Link copied to clipboard
open fun getSnStyle(): dynamic
Link copied to clipboard
fun getStyle(name: String): String?
Link copied to clipboard
open override fun hasCssClass(css: String): Boolean
Link copied to clipboard
open fun hide()
Link copied to clipboard
open override fun leading(component: Component?)
Link copied to clipboard

Sets the icon identified by name to the leading slot.

Link copied to clipboard
open override fun refresh()
Link copied to clipboard
open override fun removeAfterCreateHook(hook: (VNode) -> Unit): Boolean
Link copied to clipboard
open override fun removeAfterDestroyHook(hook: () -> Unit): Boolean
Link copied to clipboard
open override fun removeAfterInsertHook(hook: (VNode) -> Unit): Boolean
Link copied to clipboard
open override fun removeAttribute(name: String)
Link copied to clipboard
open override fun removeBeforeDisposeHook(hook: () -> Unit): Boolean
Link copied to clipboard
open override fun removeCssClass(css: String)
Link copied to clipboard
open override fun removeCssStyle(css: Style)
Link copied to clipboard
open fun removeEventListener(id: Int)
Link copied to clipboard
Link copied to clipboard
fun removeStyle(name: String)
Link copied to clipboard
open override fun removeSurroundingCssClass(css: String)
Link copied to clipboard
open override fun removeSurroundingCssStyle(css: Style)
Link copied to clipboard
open override fun renderVNode(): VNode
Link copied to clipboard

Performs the same validity checking steps as the checkValidity method. If the value is invalid, this method also fires the invalid event on the element, and (if the event isn't canceled) reports the problem to the user.

Link copied to clipboard
fun reset()

Reset the text field to its default value.

Link copied to clipboard
fun select()

Selects all the text in the text field.

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

Sets a custom validity message for the underlying element.

Link copied to clipboard
open fun setDragDropData(format: String, data: String)
Link copied to clipboard
open fun setDropTarget(format: String, callback: (DragEvent) -> Unit)
open fun setDropTarget(formats: Set<String>?, callback: (DragEvent) -> Unit)
Link copied to clipboard
open fun setDropTargetData(format: String, callback: (String?) -> Unit)
Link copied to clipboard
open fun <T : Widget> setEventListener(block: SnOn<T>.() -> Unit): Int
Link copied to clipboard
fun setRangeText(replacement: String)
fun setRangeText(replacement: String, start: Int, end: Int, selectionMode: SelectionMode)

Replaces a range of text with a new string.

Link copied to clipboard
fun setSelectionRange(start: Int?, end: Int?, direction: TextFieldSelectionDirection? = null)

Sets the start and end positions of a selection in the text field.

Link copied to clipboard
fun setStyle(name: String, value: String)
Link copied to clipboard
open fun show()
Link copied to clipboard
open override fun <T> singleRender(block: () -> T): T
Link copied to clipboard
open override fun singleRenderAsync(block: () -> Unit)
Link copied to clipboard
fun stepDown(stepDecrement: Number? = null)

Decrements the value of a numeric type text field by MdTextField.step or stepDecrement step number of times.

Link copied to clipboard
fun stepUp(stepIncrement: Number? = null)

Increments the value of a numeric type text field by MdTextField.step or stepIncrement step number of times.

Link copied to clipboard
open fun toggleVisible()
Link copied to clipboard
open override fun trailing(component: Component?)
Link copied to clipboard

Sets the icon identified by name to the trailing slot.

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