Need to add read-more and read-less for a cell item if text is more than 20 character in length

Hi Adrian,

Actually, this is good. But adding readmore button in a different cell does’t help us in our application.

Is there any possibility to add the readmore button in the same cell where is more than 100 characters like an hyperlink.

I used below code to get the above image for example,

if (col.field_name === ‘comments’) {

      colSpecification.renderer = (instance: any, TD: any, row: number, column: number, prop: any, value: any, cellProperties: any) => {

        TD.setAttribute('title', value ? value : '');

        TD.innerHTML = `${value ? value + '  <a class="customLink" (click)="Check()">Read more</a>' : ''}`;

      };

    }

Thanks,
Karthikeyan