You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a space missing between resizable and foo.
This only occurs when passing a function to [headerClass], that returns a string. Passing a string directly to the property as well as passing a function, that returns an object, does not lead to the error.
The issue lays in the header-cell.component.ts in get columnCssClasses:
if(this.column.headerClass){if(typeofthis.column.headerClass==='string'){cls+=' '+this.column.headerClass;}elseif(typeofthis.column.headerClass==='function'){constres=this.column.headerClass({column: this.column});if(typeofres==='string'){cls+=res;// <-- Here is the error, this must be cls += ' ' + res}elseif(typeofres==='object'){constkeys=Object.keys(res);for(constkofkeys){if(res[k]===true){cls+=` ${k}`;}}}}}
The text was updated successfully, but these errors were encountered:
LeoVie
added a commit
to LeoVie/ngx-datatable
that referenced
this issue
Jan 16, 2025
This template code
with
produces this result:
There is a space missing between
resizable
andfoo
.This only occurs when passing a function to
[headerClass]
, that returns a string. Passing a string directly to the property as well as passing a function, that returns an object, does not lead to the error.The issue lays in the
header-cell.component.ts
inget columnCssClasses
:The text was updated successfully, but these errors were encountered: