Class UiInlineEdit

Assembly: redb.Identity.Web.dll
public class UiInlineEdit : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender

Inheritance

Object→ComponentBase→UiInlineEdit

Implements

Properties

Disabled

When true, the field renders read-only — no pencil icon, no click handler.

[Parameter]
public bool Disabled { get; set; }

MaxLength

Maximum length for the input. Default 200 — most identity-name fields

[Parameter]
public int MaxLength { get; set; }

OnSave

Save handler — called when the user commits (Enter / Tab / blur). The

[Parameter]
public EventCallback<string> OnSave { get; set; }

Placeholder

Placeholder shown when Value is empty. Mirrors HTML <input

[Parameter]
public string Placeholder { get; set; }

Validate

Optional validation predicate — runs synchronously before OnSave is

[Parameter]
public Func<string, string?>? Validate { get; set; }

Value

Current persisted value shown when idle. Bind to the source-of-truth

[Parameter]
[EditorRequired]
public string Value { get; set; }

Methods

BuildRenderTree(RenderTreeBuilder)

Renders the component to the supplied .

protected override void BuildRenderTree(RenderTreeBuilder __builder)