cheetah-grid
    Preparing search index...

    Class DrawGridAbstract

    DrawGrid

    cheetahGrid.core.DrawGrid

    cheetahGrid.core

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    • Parameters

      • options: DrawGridConstructorOptions = {}

      Returns DrawGrid

    Accessors

    • get canvas(): HTMLCanvasElement

      Get canvas element.

      Returns HTMLCanvasElement

    • get colCount(): number

      Get the number of columns.

      Returns number

    • set colCount(colCount: number): void

      Set the number of columns.

      Parameters

      • colCount: number

      Returns void

    • get defaultColWidth(): string | number

      Get the default column width.

      Returns string | number

    • set defaultColWidth(defaultColWidth: string | number): void

      Set the default column width.

      Parameters

      • defaultColWidth: string | number

      Returns void

    • get defaultRowHeight(): number

      Get the default row height.

      Returns number

    • set defaultRowHeight(defaultRowHeight: number): void

      Set the default row height.

      Parameters

      • defaultRowHeight: number

      Returns void

    • get font(): undefined | string

      Get the font definition as a string.

      Returns undefined | string

    • set font(font: undefined | string): void

      Set the font definition with the given string.

      Parameters

      • font: undefined | string

      Returns void

    • get frozenColCount(): number

      Get the number of frozen columns.

      Returns number

    • set frozenColCount(frozenColCount: number): void

      Set the number of frozen columns.

      Parameters

      • frozenColCount: number

      Returns void

    • get frozenRowCount(): number

      Get the number of frozen rows.

      Returns number

    • set frozenRowCount(frozenRowCount: number): void

      Set the number of frozen rows.

      Parameters

      • frozenRowCount: number

      Returns void

    • get leftCol(): number

      Get the index of the first column in the scrollable region that is visible.

      Returns number

    • get rowCount(): number

      Get the number of rows.

      Returns number

    • set rowCount(rowCount: number): void

      Set the number of rows.

      Parameters

      • rowCount: number

      Returns void

    • get scrollLeft(): number

      gets or sets the number of pixels that an element's content is scrolled from its left edge

      Returns number

    • set scrollLeft(scrollLeft: number): void

      Parameters

      • scrollLeft: number

      Returns void

    • get scrollTop(): number

      gets or sets the number of pixels that an element's content is scrolled vertically

      Returns number

    • set scrollTop(scrollTop: number): void

      Parameters

      • scrollTop: number

      Returns void

    • get selection(): Selection

      Get the selection instance.

      Returns Selection

    • get topRow(): number

      Get the index of the first row in the scrollable region that is visible.

      Returns number

    • get trimOnPaste(): boolean

      If set to true, trim the pasted text on pasting.

      Returns boolean

    • set trimOnPaste(trimOnPaste: boolean): void

      Parameters

      • trimOnPaste: boolean

      Returns void

    • get underlayBackgroundColor(): undefined | string

      Get the background color of the underlay.

      Returns undefined | string

    • set underlayBackgroundColor(underlayBackgroundColor: undefined | string): void

      Set the background color of the underlay.

      Parameters

      • underlayBackgroundColor: undefined | string

      Returns void

    • get visibleColCount(): number

      Get the number of scrollable columns fully visible in the grid. visibleColCount does not include the frozen columns counted by the frozenColCount property. It does not include any partially visible columns on the right of the grid.

      Returns number

    • get visibleRowCount(): number

      Get the number of scrollable rows fully visible in the grid. visibleRowCount does not include the frozen rows counted by the frozenRowCount property. It does not include any partially visible rows on the bottom of the grid.

      Returns number

    • get EVENT_TYPE(): DrawGridEvents

      Returns DrawGridEvents

    Methods

    • Parameters

      • disposable: { dispose(): void }

      Returns void

    • Parameters

      Returns void

    • Parameters

      • name: "fadeinWhenCallbackInPromise"
      • Optionalvalue: boolean

      Returns boolean

    • Dispose the grid instance.

      Returns void

    • Focus the cell.

      Parameters

      • col: number

        The column index.

      • row: number

        The row index

      Returns void

    • Get the overflowed text in the cell rectangle, from the given cell.

      Parameters

      • col: number

        The column index.

      • row: number

        The row index

      Returns null | string

      The text overflowing the cell rect.

    • Get the rect of the cell.

      Parameters

      • col: number

        index of column, of the cell

      • row: number

        index of row, of the cell

      Returns Rect

      the rect of the cell.

    • Get the relative rectangle of the cell.

      Parameters

      • col: number

        index of column, of the cell

      • row: number

        index of row, of the cell

      Returns Rect

      the rect of the cell.

    • Get the rectangle of the cells area.

      Parameters

      • startCol: number

        index of the starting column, of the cell

      • startRow: number

        index of the starting row, of the cell

      • endCol: number

        index of the ending column, of the cell

      • endRow: number

        index of the ending row, of the cell

      Returns Rect

      the rect of the cells.

    • Parameters

      • absoluteX: number

      Returns number

    • Get the column width of the given the column index.

      Parameters

      • col: number

        The column index

      Returns number

      The column width

    • Get root element.

      Returns HTMLElement

      root element

    • Get the column max width of the given the column index.

      Parameters

      • col: number

        The column index

      Returns undefined | string | number

      The column max width

    • Get the column min width of the given the column index.

      Parameters

      • col: number

        The column index

      Returns undefined | string | number

      The column min width

    • Parameters

      • absoluteY: number

      Returns number

    • Get the row height of the given the row index.

      Parameters

      • row: number

        The row index

      Returns number

      The row height

    • Parameters

      • type: string

      Returns boolean

    • Redraws the range of the given cell.

      Parameters

      • col: number

        The column index of cell.

      • row: number

        The row index of cell.

      Returns void

    • Redraws the range of the given cells.

      Parameters

      • startCol: number

        index of the starting column, of the cell

      • startRow: number

        index of the starting row, of the cell

      • endCol: number = startCol

        index of the ending column, of the cell

      • endRow: number = startRow

        index of the ending row, of the cell

      Returns void

    • Parameters

      • col: number
      • row: number

      Returns null | { col: boolean; row: boolean }

    • Adds an event listener.

      Parameters

      • type: string

        The event type id.

      • listener: AnyFunction

        Callback method.

      Returns number

      unique id for the listener.

    • Scroll to where cell is visible.

      Parameters

      • col: number

        The column index.

      • row: number

        The row index

      Returns void

    • Parameters

      • evt: KeyboardEvent

      Returns void

    • Parameters

      Returns void

    • Set the overflowed text in the cell rectangle, to the given cell.

      Parameters

      • col: number

        The column index.

      • row: number

        The row index

      • overflowText: string | false

        The overflowed text in the cell rectangle.

      Returns void

    • Set the column width of the given the column index.

      Parameters

      • col: number

        The column index

      • width: null | string | number

        The column width

      Returns void

    • Moves the focus cursor to the given cell.

      Parameters

      • col: number

        The column index.

      • row: number

        The row index

      Returns void

    • Set the column max width of the given the column index.

      Parameters

      • col: number

        The column index

      • maxwidth: null | string | number

        The column max width

      Returns void

    • Set the column min width of the given the column index.

      Parameters

      • col: number

        The column index

      • minwidth: null | string | number

        The column min width

      Returns void

    • Set the row height of the given the row index.

      Parameters

      • row: number

        The row index

      • height: null | number

        The row height

      Returns void

    • Removes an event listener which was added with listen() by the id returned by listen().

      Parameters

      • id: number | `${number}`

        the id returned by listen().

      Returns void

    • Apply the changed scroll size.

      Returns boolean

      true if there was a change in the scroll size