I am trying to configure some custom properties in my web component. These property corresponds to css attributes like background color etc.
I am having difficulty in adding these attributes to my dom. I tried
@tagColor is my property in targetConfig
this.template.querySelectorAll('topnews-item-article-keywords').add("background", '$tagColor');
Also i tried calling a like below
<span style={headerColorToDisplay}>{top.header} </span>
get headerColorToDisplay () {
return 'background:$tagColor'
}
How can we achieve this ?