mleibman / SlickGrid

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

How to change style when find value in slickgrid #1216

Open Mahsa1996 opened 4 years ago

Mahsa1996 commented 4 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 4 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