TextInput

public class TextInput implements DialogManager.InputControl

A single‑line or multiline text input control:contentReference[oaicite:35]{index=35}.

Functions

Link copied to clipboard
public DialogManager.TextInput initial(String initial)
Sets an initial value for the input.
Link copied to clipboard
public DialogManager.TextInput labelVisible(boolean visible)
Controls whether the label is visible.
Link copied to clipboard
public DialogManager.TextInput maxLength(int maxLength)
Sets the maximum length of the input.
Link copied to clipboard
public DialogManager.TextInput multiline(Integer maxLines, Integer height)
Configures the input for multiple lines.
Link copied to clipboard
public static DialogManager.TextInput of(String key, JsonElement label)
Creates a new text input with the specified key and label.
public static DialogManager.TextInput of(String key, String label)
Convenience overload for plain string labels.
Link copied to clipboard
public JsonObject toJson()
Link copied to clipboard
public DialogManager.TextInput width(int width)
Sets the width of the input box.