Class TextInput
java.lang.Object
org.patternfly.component.BaseComponent<HTMLElement, TextInput>
org.patternfly.component.form.FormControl<HTMLElement, TextInput>
org.patternfly.component.form.TextInput
- All Implemented Interfaces:
ElementAttributeMethods<HTMLElement, TextInput>,ElementClassListMethods<HTMLElement, TextInput>,ElementConsumerMethods<HTMLElement, TextInput>,ElementContainerMethods<HTMLElement, TextInput>,ElementEventMethods<HTMLElement, TextInput>,ElementIdMethods<HTMLElement, TextInput>,ElementQueryMethods<HTMLElement>,HTMLElementAttributeMethods<HTMLElement, TextInput>,HTMLElementDataMethods<HTMLElement, TextInput>,HTMLElementStyleMethods<HTMLElement, TextInput>,HTMLElementVisibilityMethods<HTMLElement, TextInput>,IsElement<HTMLElement>,TypedBuilder<HTMLElement, TextInput>,Component,ComponentIcon<HTMLElement, TextInput>,HasValue<String>,Validatable<HTMLElement, TextInput>,Modifiers.Disabled<HTMLElement, TextInput>,Modifiers.Plain<HTMLElement, TextInput>,Modifiers.Readonly<HTMLElement, TextInput>,Modifiers.Required<HTMLElement, TextInput>
public class TextInput
extends FormControl<HTMLElement, TextInput>
implements ComponentIcon<HTMLElement, TextInput>, HasValue<String>, Modifiers.Plain<HTMLElement, TextInput>, Modifiers.Readonly<HTMLElement, TextInput>
A text input is used to gather free-form text from a user.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionProvides access to the underlying input element using a fluent API styleexpanded()Same as expanded(true)expanded(boolean expanded) Adds/removes modifier(expanded)input()Returns the underlying input elementonChange(ChangeHandler<TextInput, String> changeHandler) Defines a change handler that is called when thevalue()of this text area changes.onKeyup(ChangeHandler<TextInput, String> changeHandler) Defines a change handler that is called when thevalue()of this text area changes.placeholder(String placeholder) plain(boolean plain) Adds/removes modifier(plain)readonly(boolean readonly) Adds/removes modifier(readonly)required(boolean required) Adds/removes modifier(required)static TextInputstatic TextInputstatic TextInputtextInput(TextInputType type, String id) static TextInputtextInput(TextInputType type, String id, String value) that()value()Same as value(value, false)Methods inherited from class org.patternfly.component.form.FormControl
disabled, resetValidation, validatedMethods inherited from class org.patternfly.component.BaseComponent
componentType, element, registerComponentMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.patternfly.component.ComponentIcon
iconMethods inherited from interface org.jboss.elemento.ElementAttributeMethods
aria, aria, aria, attr, attr, attr, role, roleMethods inherited from interface org.jboss.elemento.ElementClassListMethods
classList, classList, css, toggle, toggle, toggleMethods inherited from interface org.jboss.elemento.ElementConsumerMethods
apply, runMethods inherited from interface org.jboss.elemento.ElementContainerMethods
add, add, add, add, addAll, addAll, addAll, addAll, addAll, addAllMethods inherited from interface org.jboss.elemento.ElementEventMethods
on, on, onMethods inherited from interface org.jboss.elemento.ElementIdMethods
id, uniqueIdMethods inherited from interface org.jboss.elemento.ElementQueryMethods
closest, querySelector, querySelectorAllMethods inherited from interface org.jboss.elemento.HTMLElementAttributeMethods
titleMethods inherited from interface org.jboss.elemento.HTMLElementDataMethods
dataMethods inherited from interface org.jboss.elemento.HTMLElementStyleMethods
style, style, style, style, style, styleMethods inherited from interface org.jboss.elemento.HTMLElementVisibilityMethods
hiddenMethods inherited from interface org.patternfly.style.Modifiers.Disabled
disabled, isDisabledMethods inherited from interface org.patternfly.style.Modifiers.Plain
plainMethods inherited from interface org.patternfly.style.Modifiers.Readonly
readonlyMethods inherited from interface org.patternfly.style.Modifiers.Required
required
-
Method Details
-
textInput
-
textInput
-
textInput
-
textInput
-
applyTo
Provides access to the underlying input element using a fluent API style -
expanded
Same as expanded(true) -
expanded
Adds/removes modifier(expanded) -
icon
- Specified by:
iconin interfaceComponentIcon<HTMLElement, TextInput>
-
placeholder
-
plain
Description copied from interface:Modifiers.PlainAdds/removes modifier(plain)- Specified by:
plainin interfaceModifiers.Plain<HTMLElement, TextInput>
-
readonly
Description copied from interface:Modifiers.ReadonlyAdds/removes modifier(readonly)- Specified by:
readonlyin interfaceModifiers.Readonly<HTMLElement, TextInput>
-
removeIcon
- Specified by:
removeIconin interfaceComponentIcon<HTMLElement, TextInput>
-
required
Description copied from interface:Modifiers.RequiredAdds/removes modifier(required)- Specified by:
requiredin interfaceModifiers.Required<HTMLElement, TextInput>
-
value
Same as value(value, false) -
value
-
that
- Specified by:
thatin interfaceTypedBuilder<HTMLElement, TextInput>
-
onKeyup
Defines a change handler that is called when thevalue()of this text area changes. Changes are detected by adding an event listener for theEventType.keyupevent to the text input element. -
onChange
Defines a change handler that is called when thevalue()of this text area changes. Changes are detected by adding an event listener for theEventType.changeevent to the text input element. -
value
-
input
Returns the underlying input element
-