{"action":"created","issue":{"url":"https://api.github.com/repos/crabbly/Print.js/issues/3","repository_url":"https://api.github.com/repos/crabbly/Print.js","labels_url":"https://api.github.com/repos/crabbly/Print.js/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/crabbly/Print.js/issues/3/comments","events_url":"https://api.github.com/repos/crabbly/Print.js/issues/3/events","html_url":"https://github.com/crabbly/Print.js/issues/3","id":171119899,"number":3,"title":"Print multiple pages by identify html class","user":{"login":"crossRT","id":3617115,"avatar_url":"https://avatars.githubusercontent.com/u/3617115?v=3","gravatar_id":"","url":"https://api.github.com/users/crossRT","html_url":"https://github.com/crossRT","followers_url":"https://api.github.com/users/crossRT/followers","following_url":"https://api.github.com/users/crossRT/following{/other_user}","gists_url":"https://api.github.com/users/crossRT/gists{/gist_id}","starred_url":"https://api.github.com/users/crossRT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crossRT/subscriptions","organizations_url":"https://api.github.com/users/crossRT/orgs","repos_url":"https://api.github.com/users/crossRT/repos","events_url":"https://api.github.com/users/crossRT/events{/privacy}","received_events_url":"https://api.github.com/users/crossRT/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-15T07:13:57Z","updated_at":"2016-08-15T15:10:05Z","closed_at":null,"body":"Hi there, \r\nThank you for creating this awesome library to make printing HTML so easily.\r\nI tried it and printed a div with id only, it works very well.\r\nBut it will be really great if you can add another feature that allows us to print multiple pages?\r\nFor example, I have a list of results. Each result is a container, and it can shows as a page when printing.\r\n\r\n```html\r\n<!DOCTYPE html>\r\n<html>\r\n<body>\r\n\t<div class=\"results\">\r\n\t\t<div class=\"result\">\r\n\t\t\t<h1>Student Name: student 1</h1>\r\n\t\t\t<p>Score: 100%</p>\r\n\t\t</div>\r\n\t\t<div class=\"result\">\r\n\t\t\t<h1>Student Name: student 2</h1>\r\n\t\t\t<p>Score: 90%</p>\r\n\t\t</div>\r\n\t\t<div class=\"result\">\r\n\t\t\t<h1>Student Name: student 3</h1>\r\n\t\t\t<p>Score: 80%</p>\r\n\t\t</div>\r\n\t\t<div class=\"result\">\r\n\t\t\t<h1>Student Name: student 4</h1>\r\n\t\t\t<p>Score: 70%</p>\r\n\t\t</div>\r\n\t</div>\r\n</body>\r\n</html>\r\n```\r\n\r\nSo can we use the library like this:\r\n```javascript\r\n<button type=\"button\" onclick=\"printJS('.results, 'html')\">\r\n    Print Results\r\n </button>\r\n```\r\n\r\nOnce again, sincerely appreciate for your contribution to web world.\r\nPlease do let me know any updates regarding this ya.\r\n"},"comment":{"url":"https://api.github.com/repos/crabbly/Print.js/issues/comments/239827747","html_url":"https://github.com/crabbly/Print.js/issues/3#issuecomment-239827747","issue_url":"https://api.github.com/repos/crabbly/Print.js/issues/3","id":239827747,"user":{"login":"crabbly","id":16927940,"avatar_url":"https://avatars.githubusercontent.com/u/16927940?v=3","gravatar_id":"","url":"https://api.github.com/users/crabbly","html_url":"https://github.com/crabbly","followers_url":"https://api.github.com/users/crabbly/followers","following_url":"https://api.github.com/users/crabbly/following{/other_user}","gists_url":"https://api.github.com/users/crabbly/gists{/gist_id}","starred_url":"https://api.github.com/users/crabbly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crabbly/subscriptions","organizations_url":"https://api.github.com/users/crabbly/orgs","repos_url":"https://api.github.com/users/crabbly/repos","events_url":"https://api.github.com/users/crabbly/events{/privacy}","received_events_url":"https://api.github.com/users/crabbly/received_events","type":"User","site_admin":false},"created_at":"2016-08-15T15:10:04Z","updated_at":"2016-08-15T15:10:04Z","body":"@crossRT The browser takes care of multiple pages when printing a long list or records. However, I believe what you want is to do is to print multiple html elements with the same class. For ex. `.results`. That is an interesting idea. I'll definitely take a look into it."}}
{"actor":{"display_login":"crabbly"}}