mleibman / SlickGrid

A lightning fast JavaScript grid/spreadsheet
http://wiki.github.com/mleibman/SlickGrid
MIT License
6.81k stars 1.98k forks source link

How to change style when find value in slickgrid #1216

Open Mahsa1996 opened 3 years ago

Mahsa1996 commented 3 years ago

Hello every body, I want, when I search for example "apple" ,find this word and change background color. but I can't find solution for this.

My Code:

protected showMatchItem() { this.searchresult.text(${this.currentMatchIndex + 1} از ${this.matchIndexes.length}); this.slickGrid.scrollRowIntoView(this.matchIndexes[this.currentMatchIndex], true); this.slickGrid.setCellCssStyles("Title_highlight", { 0: { Title: "highlight" }, 5: { Title: "highlight" } });

6pac commented 3 years ago

Can I suggest posting on StackOverflow. GitHub is for bugs. Also, this repo is dead. Slickgrid is now at: https://github.com/6pac/SlickGrid