I am oupando igxGrid, I want to do a line wrap via button.
the first instance looks like this:
using the button that performs the line wrapping:
Thank you.
Hello,
Thank you for posting on our forums.
You can use the cellStyles property exposed by igxColumnComponent in order to apply styling of the cells on demand. More information can be found on our website here:
https://es.infragistics.com/products/ignite-ui-angular/angular/components/grid/conditional-cell-styling
I have prepared a sample for you to demonstrate how to apply css variables on a button click.
https://stackblitz.com/edit/igx-grid-change-cell-style-button
Should you have any further questions, please let me know.
Sincerely,Tihomir TonevAssociate Software DeveloperInfragistics
In your code snippet, I see that you do "word-wrap": "break-word"
public changedStyles = { background: "linear-gradient(to right, #b993d6, #8ca6db)", "font-weight": "bold", color: (rowData, coljey, cellValue, rowIndex) => rowIndex % 2 === 0 ? "white" : "gray", animation: "0.75s popin", "word-wrap": "break-word", };
I already tried other options:
white-space: pre-wrap! important; overflow-wrap: break-word;
or
white-space: none;
Any other option?