Wrapped text in set filter
If your data contains escape sequences for carriage return or newline you may see the text wrap around on its self as shown in the image above.
We recommend that you use a valueformatter to remove the newlines and nulls to pre-sanitise your data.
valueFormatter: removeEscapes
function removeEscapes(params) {
return (params.value === null) ? "" : params.value.toString().replace(/\r?\n|\r/g, ' ');
}
{headerName : 'DirtyData', field : 'LatestRecord', valueFormatter: removeEscapes}
Comments
0 comments
Please sign in to leave a comment.