Would you please help me in this tooltip? It does not work.
<div (click)="edit(row.widgetAccess)" title="getTitle(row.widgetAccess.widgets.length) {{widget(s) | translate}}">
<span >{{'EditTitle' | translate}}</span>
<span> ({{row.widgetAccess.widgets.length}})</span>
</div>
and here is the func
getTitle(editWidgetsNum) {
return this.translate.instant('Edit_WidgetsNum', {n: editWidgetsNum});
}
CodePudding user response:
You should use:
title="{{getTitle(row.widgetAccess.widgets.length)"}}"
or
[title]="getTitle(row.widgetAccess.widgets.length)"