Display a word in a cell in bold

Tags: #<Tag:0x00007efc651a7d00>

Hi,

Is there a way to display a text in a cell where a particular word is in bold? Something like this:

image

For example, a user inputs a sentence, a particular word will be displayed as bold and the others are not.

Thanks! :slight_smile:

Hi @eabardies

You would need to use custom renderer to make a particular word bold. Here’s an example how it works. You can also type a new data, but you need to add b tags to the words that should be bold.

https://jsfiddle.net/aszymanski/q3hyLrw2/1/

Hi @adrian.szymanski,

Will give this a try. I’ve also tried using the td.innerHTML and it seems to be working fine but this seems good.

Thanks a lot! :slight_smile:

I’m glad I could help! I’m closing the topic now the issue is solved :slight_smile: