API reference
@salmonui/editors/inline-edit
20 exported symbols: 1 function, 13 interfaces, 5 types and 1 constant. Each name links its page with the signature, docs and members.
import { … } from '@salmonui/editors/inline-edit';Functions
Interfaces
InlineEditActionsContextInlineEditApiRef handle: the Data Grid edit method names.InlineEditCancelEventInlineEditCancellableA cancellable event (preventDefault() vetoes the step).InlineEditDraftChangeEventInlineEditEditingChangeEventSecond argument of onEditingChange (frozen).InlineEditInputPropsProps for the edit element: spread them on an input or pass them to a Salmon field.InlineEditLocaleTextText of the built-in parts.InlineEditPropsInlineEditRenderContextArgument of the children render prop.InlineEditSaveErrorEventInlineEditSaveEventInlineEditStartEvent
Types
InlineEditPartInlineEditSourceInput that caused a lifecycle event.InlineEditTriggerWhat ended an edit: the action buttons, Enter, Escape, focus leaving, or a ref method.InlineEditValidationValidation rules: the Data Grid column.validation vocabulary, evaluated by @salmonui/core/validation. Each rule value is the argument or [argument, message].InlineEditValidatorCustom validator of validation.validate: an error message, or null / undefined / true when valid (false uses the default message). May be async.
Constants
INLINE_EDIT_DEFAULT_LOCALE_TEXTEnglish defaults of localeText.