katoid / angular-grid-layout

Responsive grid with draggable and resizable items for Angular applications.
https://katoid.github.io/angular-grid-layout
MIT License
462 stars 61 forks source link

Request to Add an API to print the whole Grid. #22

Closed SamanThind closed 2 years ago

SamanThind commented 3 years ago

Please provide an API to print the grid on a page. Can be used in various scenarios like in label design and printing.

llorenspujol commented 3 years ago

I may missing something, but if it is the 'print' I am thinking, the grid doesn't have to be responsible of that. You can do something like: https://stackoverflow.com/a/2255438/6099651 without the grid handling it.

If this link doesn't solve your issue, can you detail more your use case?

SamanThind commented 3 years ago

We are using this layout for making custom UCC labels. We have find most of the work done but we are stuck at one place that we want to print multiple prints of a grid at one time with different value ( like around 100 prints in one transaction ) we cant click on every single click so we want a shortcut that we can call a print function which can create a print html for us . If you already have something like this or some other way u have n mind please let me know.

llorenspujol commented 2 years ago

This kind of functionality is out fo scope right now. As far as I understand your issue, is not the responsibility of the grid to 'print'. You can make a task or something over the grid that changes automatically the grid value and prints for each one result. So, you can automate the content you set to the grid, the grid is not responsible of that, it is just responsible for the layout positioning.

Said that, I close the issue, if you need help, you can reach me personally and I will try to help if I can.