API reference Obsidian.API.Client.Razor
TextField class
Vanilla's edit box, like TextField: 200 by 20 pixels unless sized. Bind its text with @bind-Value.
public sealed class TextField : ScreenPart
In Obsidian.API.Client.
Constructors
public TextField();Properties
Bordered
public bool Bordered { get; set; }Whether to draw the field's border and background; without, only the text, like the creative inventory's search.
Hint
public string Hint { get; set; }Text shown, greyed, while the field is empty.
public int MaxLength { get; set; }public string Value { get; set; }ValueChanged
public EventCallback<string> ValueChanged { get; set; }Raised with the new text as the player types.