Image Highlighting with Gridjs

I have set up a custom image highlight function that I have created and registered to the sheet with setCustomHighlightImgFunc. I then call addHighlightImage(id) and the highlight is correctly attached to the image. However, when I call removeHighlightImage(id) with the same id, the highlight is not removed. Is there another method I need to call to render the removal?

Also, when I call setHighlightAll(false) on the sheet, it applies the image highlight to all of my images, even if no highlight was added to the images. What should be the result of setHighlightAll for images?

@gpaolano,

Please see the document with example code on how to work with GridJs Highlight feature for your reference.

If you still have any confusion or find the issue, kindly share your sample standalone project to reproduce the issue, we will check it soon.

I was using a custom highlight image func for the image highlighting, but didn’t have a conditional for when isHighlight is false. Added that and works as expected.

Thanks.

@gpaolano,

Good to know that you have sorted it out mow. Feel free to write us back if you have further queries or comments.