Click here to Skip to main content
15,886,067 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
[ngStyle]="{'position':'absolute','top':field.y+'px','left':field.x+'px','font-size': field.fontsize,'font-family':field.fontfamily,'height':field.height+'px','width':assignWidth(field.width)+'px','border':'1px solid #FFF','background':'#EEE','overflow':'hidden' }"


What I have tried:

Here, I am getting error if I assign width using an external method(assignWidth). I want only width property in ngStyle to be assigned using a function. How to achieve this ?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900