ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

ui5-panel control attribute header-text

Open camilo2312 opened this issue 7 years ago • 3 comments

Hi guys

When I try to put a property in the header-text attribute using angular, it is not possible to link it to a variable

image

How can we do that?

Thanks

camilo2312 avatar Nov 15 '19 13:11 camilo2312

Hello @camilo2312

I am not really an Angular expert but you can check our sample app https://github.com/SAP/ui5-webcomponents-sample-angular/blob/0696fde73e512848856ea7fd9e4e330e73aae7e9/src/app/app.component.html#L9-L13

Can you try to do something like:

[headerText]="expression"

@fifoosid ping

MapTo0 avatar Nov 15 '19 13:11 MapTo0

Hi @camilo2312

You have two approaches to choose from:

  1. As Martin proposed above: [headerText]="panelTitle"
  2. If you want to use the dashed syntax: [attr.header-text]="panelTitle"

With both approaches, panelTitle should be declared variable.

Best regards, Filip

fifoosid avatar Nov 15 '19 14:11 fifoosid

Thanks for your help

camilo2312 avatar Nov 15 '19 14:11 camilo2312