RayCraftDocs
v1.0.3 raycraft.dev
On this page

InPlaceEditor

Free

Shows a value as text; a click turns it into a field with save and cancel buttons. Enter saves, Escape cancels; with Lines above one Ctrl+Enter saves.

Example

InPlaceEditor control

Parameters

ParameterTypeDescription
ClassstringExtra CSS classes added to the root element.
DisabledboolDisables interaction.
DisplayNamestringName used in validation messages.
HelperTextstringHint shown below the field.
LabelstringVisible label text (charts: accessible name; IconButton: accessible name and tooltip).
LinesintNumber of text lines; above 1 the field becomes a multiline text area.
PlaceholderstringPlaceholder shown when the field is empty.
ReadOnlyboolShows the value but does not allow changes.
StylestringInline style added to the root element.
ValuestringCurrent value. Use with @bind-Value.

Events

EventTypeDescription
OnSaveEventCallback<string>
ValueChangedEventCallback<string>Raised when the value changes.

Package

InPlaceEditor is part of RayCraft Free. Package: RayCraft.Blazor. It comes from nuget.org. See Getting started.