Interface EditorOverlayResults

interface EditorOverlayResults {
    isEditing: boolean;
    onKeyboardEvent: ((e) => void);
    onScroll?: ((scrollPoint) => void);
    overlay: ((view) => ReactNode);
    cancelEdit(): void;
    onPointerEvent(e): void;
    startEdit(event?): void;
    submitEdit(): void;
}

Properties

isEditing: boolean

indicates if the editor is active

onKeyboardEvent: ((e) => void)

Bind to keyboard event

Type declaration

    • (e): void
    • Parameters

      • e: KeyboardEvent<HTMLDivElement>

      Returns void

onScroll?: ((scrollPoint) => void)

OnScroll listener to align the editor

Type declaration

    • (scrollPoint): void
    • Parameters

      Returns void

overlay: ((view) => ReactNode)

Editor component to be injected.

Type declaration

Methods

  • Cancels an edit

    Returns void

  • Bind to pointer event

    Parameters

    • e: PointerEvent<HTMLDivElement>

    Returns void

  • Make a cell editable

    Parameters

    Returns void

    Params

    an option StartEditEvent

  • Imperatively trigger submit

    Returns void