Class GridSearchService

Search service remembers the search state and the location of the last match, for incremental searching. Search service is also responsible of providing a cell renderer function to set the background color of cells matching the search text.

Hierarchy

  • GridSearchService

Constructors

Properties

_changed: any
_column: any
_grid: any
_looping: any
_query: any
_row: any
_wrapRows: any

Wrap indices if needed to just before the start or just after the end.

Accessors

  • get query(): RegExp
  • Returns RegExp

Methods

  • Returns a cellrenderer config function to render each cell background. If cell match, background is matchBackgroundColor, if it's the current match, background is currentMatchBackgroundColor.

    Parameters

    Returns ConfigFunc<string>

  • Clear the search.

    Returns void

  • incrementally look for searchText.

    Parameters

    • query: RegExp
    • Optional reverse: boolean

    Returns boolean

Generated using TypeDoc