Table of Contents

Class VTextField

Namespace
Velvet.Experimental
Assembly
Velvet.Docs.dll

EXPERIMENTAL. Initializer-style builder for a text field. Maps to TextField(string?, string?, Action<string>?, string?, string?, string?, bool?, bool?, Func<VisualElement, Action>?, string?, string?, string?, IReadOnlyDictionary<string, string>?, IReadOnlyDictionary<string, string>?). Text fields are leaves; children added via the collection initializer are ignored.

public sealed class VTextField : VBuilder
Inheritance
object
VTextField
Inherited Members

Constructors

VTextField(string?)

Properties

Enabled

When false, disables user input.

IsPasswordField

When true, masks the input as a password field.

Label

Label text shown next to the field.

OnChange

Handler invoked when the input text changes.

Value

Current text value (controlled).

Methods

Build()

Converts this builder into a concrete VNode by delegating to the matching V.* factory.