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.

Constructors

Properties

_changed: Signal<GridSearchService, void> = ...
_column: number
_grid: DataGrid
_looping: boolean = true
_query: null | RegExp
_row: number

Accessors

Methods

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

    Parameters

    • reverse: boolean = false

    Returns void

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