Class InputCellEditorAbstract

Abstract base class with shared functionality for cell editors which use HTML Input widget as editor.

Hierarchy (view full)

Constructors

Properties

Cell configuration data for the cell being edited.

editorContainer: HTMLDivElement

The div element used to contain and position editor widget.

inputChanged: Signal<InputCellEditor, void> = ...

A signal emitted when input changes.

inputType: string
onCancel?: (() => void)

Callback method to call on cell edit cancel.

Type declaration

    • (): void
    • Returns void

onCommit?: ((response) => void)

Callback method to call on cell edit commit.

Type declaration

validator: undefined | ICellInputValidator

Cell input validator to use for the cell being edited.

validityNotification: null | Notification = null

Notification popup used to show validation error messages.

viewportOccluder: HTMLDivElement

The div element used to prevent editor widget overflow beyond grid viewport.

Accessors

  • get isDisposed(): boolean
  • Whether the cell editor is disposed.

    Returns boolean

  • get validInput(): boolean
  • Whether the value input is valid.

    Returns boolean

Methods

  • Set validity flag.

    Parameters

    • valid: boolean

      Whether the input is valid.

    • message: string = ''

      Notification message to show.

      If message is set to empty string (which is the default) existing notification popup is removed if any.

    Returns void