Class CellSearchProvider

Search provider for cells.

Hierarchy (View Summary)

Implements

Constructors

Properties

_stateChanged: Signal<IBaseSearchProvider, void>
currentIndex: null | number

Current match index

filters: undefined | IFilters

Current search filters

query: null | RegExp

Current search query

Accessors

  • get currentMatchIndex(): null | number
  • Current match index

    Returns null | number

  • get isActive(): boolean
  • Whether the cell search is active.

    This is used when applying search only on selected cells.

    Returns boolean

  • get isDisposed(): boolean
  • Whether the search provider is disposed or not.

    Returns boolean

  • get matchesCount(): number
  • Number of matches in the cell.

    Returns number

Methods

  • Whether the cell is read-only: its editable metadata is false. No match in a read-only cell can be replaced.

    Returns boolean

  • Set isActive status.

    It will start or end the search

    Parameters

    • v: boolean

      New value

    Returns Promise<void>

  • Set whether user selection should be protected from modifications.

    If disabled, the selection will be updated on search and on editor focus to cover the current match. We need to protect selection from modifications for both: search in text and search in cells; since setSearchSelection is only telling us about search in text, we need to have an additional way to signal that either search in text or in cells is active, or for any other reason selection range should be protected.

    Parameters

    • v: boolean

    Returns void