tiberiuzuld / angular-gridster2

Angular gridster 2
https://tiberiuzuld.github.io/angular-gridster2
MIT License
1.28k stars 376 forks source link

Unable to integrate dom-to-image.js with angular-gridster2.js #454

Open swethasappati opened 5 years ago

swethasappati commented 5 years ago

Using dom-to-image.js to Export dashboard content (using angular-gridster2.js). So I'm unable to see the data which is inside scrollbar(I can see only the visible area).

In dom-to-image.js given solution to export scrollbar content as well You can refer https://github.com/tsayen/dom-to-image/issues/183 https://jsfiddle.net/2m8dcr63/32/

The solution provided by dom-to-image is not working in gridster.js Please help me

petarnikolovski commented 5 years ago

@swethasappati How are you fetching the image and the element that contains it? You can try to use @ViewChild or @ViewChildren to fetch all gridster elements, and then try to use native elements with the proposed solution on the jsfiddle you provided.

tiberiuzuld commented 5 years ago

Hi @swethasappati , I think it depends on your gridType option of the grid and what element you give to dom-to-image. Try to play around with the options here https://tiberiuzuld.github.io/angular-gridster2/gridTypes

anix9920 commented 3 years ago

any final solution for this problem i am facing same..

anil957 commented 2 years ago

iam aslo facing same issue Any one find the solution