Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TextCellEditor

Cell editor for text cells.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Protected cell

Cell configuration data for the cell being edited.

Protected editorContainer

editorContainer: HTMLDivElement

The div element used to contain and position editor widget.

Protected input

input: HTMLInputElement

Protected inputChanged

inputChanged: Signal<this, void> = new Signal<this, void>(this)

A signal emitted when input changes.

Protected inputType

inputType: string = "text"

Protected Optional onCancel

onCancel: undefined | function

Callback method to call on cell edit cancel.

Protected Optional onCommit

onCommit: undefined | function

Callback method to call on cell edit commit.

Protected validator

validator: ICellInputValidator | undefined

Cell input validator to use for the cell being edited.

Protected validityNotification

validityNotification: Notification | null = null

Notification popup used to show validation error messages.

Protected viewportOccluder

viewportOccluder: HTMLDivElement

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

Accessors

isDisposed

  • get isDisposed(): boolean

Protected validInput

  • get validInput(): boolean

Methods

Protected bindEvents

  • bindEvents(): void

cancel

  • cancel(): void

Protected commit

Protected createValidatorBasedOnType

Protected createWidget

  • createWidget(): void

Protected deserialize

  • deserialize(value: any): any

dispose

  • dispose(): void

edit

Protected getCellInfo

  • getCellInfo(cell: CellConfig): Private.ICellInfo

Protected getInput

  • getInput(): string | null

handleEvent

  • handleEvent(event: Event): void

Protected setValidity

  • setValidity(valid: boolean, message?: string): void
  • Set validity flag.

    Parameters

    • valid: boolean

      Whether the input is valid.

    • Default value 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

Protected startEditing

  • startEditing(): void

Protected updatePosition

  • updatePosition(): void

Protected validate

  • validate(): void

Generated using TypeDoc