SingleOptionInput

A single option selector input control:contentReference[oaicite:46]{index=46}.

Functions

Link copied to clipboard
public DialogManager.SingleOptionInput addOption(String id, JsonElement display, boolean initial)
Adds an option to the selection.
public DialogManager.SingleOptionInput addOption(String id, String display, boolean initial)
Convenience overload using plain string for the display.
Link copied to clipboard
Controls whether the label is visible.
Link copied to clipboard
public static DialogManager.SingleOptionInput of(String key, JsonElement label)
public static DialogManager.SingleOptionInput of(String key, String label)
Link copied to clipboard
public JsonObject toJson()
Link copied to clipboard
Sets the width of the input box.