Interface CellEditorProps<CT, DT>

interface CellEditorProps<CT, DT> {
    containerBounds?: Bounds;
    defaultTextStyle?: TextStyle;
    disabled?: boolean;
    editState?: EditState<CT, DT>;
    useRichStyling?: boolean;
    zoom?: number;
    onCancelEdit?(): void;
    onChangeEdit?(editState): void;
    onDoneEdit?(): void;
    onNavigate?(direction, select?, contentful?): void;
    onNavigateSelection?(direction): void;
    onStartEdit?(editState): void;
    onSubmitEdit?(editState): void;
    setNaturalSize?(size): void;
}

Type Parameters

  • CT
  • DT

Hierarchy (view full)

Properties

containerBounds?: Bounds

Position of editor, x, y, width and height

defaultTextStyle?: TextStyle

Styling for the textfield

disabled?: boolean
editState?: EditState<CT, DT>

editState of the cell

useRichStyling?: boolean

Override defaultText styling with cellStyling?

zoom?: number

Methods

  • On Cancel callbacks. Hides the editor

    Returns void

  • Callback when a value has changed.

    Parameters

    Returns void

  • Called when either the cancel or submit is called.

    Returns void

  • Parameters

    Returns void

  • Callback when a value has changed.

    Parameters

    Returns void

  • Callback to submit the value back to data store

    Parameters

    Returns void

  • Parameters

    Returns void