Back to API Reference
Class

FieldDecorator

abstract
Inherits:InputBehavior

Base class for state-driven field visuals: placeholder, floating label, supporting text, character counter, or validation feedback. It participates in the ordinary InputBehavior lifecycle and appears in the editor's behavior type picker.

Derived Types(4)

Types that inherit from FieldDecorator.

protected bool IsAttached{ get }

Whether this decorator is currently attached to an enabled editable.

protected override void OnEnable()
protected override void OnDisable()
protected void RequestTick()

Starts per-frame OnTick delivery. Idempotent; idle decorators receive no ticks.

protected void StopTick()

Stops per-frame OnTick delivery. Safe to call from inside OnTick.

protected virtual void OnAttach()

Cache target references and capture any original state to restore in OnDetach.

protected virtual void OnDetach()

Revert anything applied to targets so the editable returns to its undecorated state.

protected abstract void OnFieldState()

Called whenever focus, text, composition, or validation changes. Drive visuals from state.

protected virtual void OnTick()

Per-frame hook delivered only between RequestTick and StopTick. deltaTime is unscaled.