angular-gridster2
angular-gridster2 copied to clipboard
Calculating the width and height of the grid area that has blocks
Is there a simple way to get the width and height in pixels of the grid that has blocks in it?
What do you wanna achieve? @shanti2530
If your element is inside the grid. then you can inject elementref on the and use this.elementref.nativeElement.parentElement.clientWidth and this.elementref.nativeElement.parentElement.clientHeight