Package space.maxus.flare.ui.compose
Interface TextInput.Builder
- All Superinterfaces:
ComposableLike
- Enclosing interface:
- TextInput
The builder for text input
-
Method Summary
Modifier and TypeMethodDescriptiondefault ComposableConverts self to a composablebuild()Builds this text inputdisabled(boolean disabled) Sets the disabled stateinitialText(String initialText) Sets the initial text value (defaults to empty string)Sets the default promptAdds a validator for text inputMethods inherited from interface space.maxus.flare.ui.ComposableLike
inside
-
Method Details
-
build
TextInput build()Builds this text input- Returns:
- This text input
-
disabled
Sets the disabled state- Parameters:
disabled- The disabled state- Returns:
- This builder
-
prompt
Sets the default prompt- Parameters:
prompt- Prompt to be set- Returns:
- This builder
-
initialText
Sets the initial text value (defaults to empty string)- Parameters:
initialText- The initial text value- Returns:
- This builder
-
validate
Adds a validator for text input- Parameters:
validator- Validator to be added- Returns:
- This builder
- See Also:
-
asComposable
Description copied from interface:ComposableLikeConverts self to a composable- Specified by:
asComposablein interfaceComposableLike- Returns:
- The composable
-