I have made a table where user can add data. The input field is a resuable component.
I want to increase the width and height of the highlighted input field while decreasing the width of the ones inside the table. How do I do it?
This is the stackblitz link
There are two suggestions.
width: 100%;
resusable-component.ts
@Input()
height = 100;
@Input()
width= 100;
resusable-component.html
<div
[style.width.px]={width}
[style.height.px]={height}>
</div>
parent.component.html
<!-- When you want to have a custom height and width-->
<resusable [height]=200 [width]=300></reusable>
<!-- When you want to have a default height and width-->
<resusable></reusable>