Home > Enterprise >  variable in tooltip and the translation
variable in tooltip and the translation

Time:09-06

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)"
  • Related