{"action":"created","issue":{"url":"https://api.github.com/repos/someatoms/jsPDF-AutoTable/issues/26","labels_url":"https://api.github.com/repos/someatoms/jsPDF-AutoTable/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/someatoms/jsPDF-AutoTable/issues/26/comments","events_url":"https://api.github.com/repos/someatoms/jsPDF-AutoTable/issues/26/events","html_url":"https://github.com/someatoms/jsPDF-AutoTable/issues/26","id":72177439,"number":26,"title":"Right aligned columns and display some contents in full","user":{"login":"XinYiMan","id":10870676,"avatar_url":"https://avatars.githubusercontent.com/u/10870676?v=3","gravatar_id":"","url":"https://api.github.com/users/XinYiMan","html_url":"https://github.com/XinYiMan","followers_url":"https://api.github.com/users/XinYiMan/followers","following_url":"https://api.github.com/users/XinYiMan/following{/other_user}","gists_url":"https://api.github.com/users/XinYiMan/gists{/gist_id}","starred_url":"https://api.github.com/users/XinYiMan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XinYiMan/subscriptions","organizations_url":"https://api.github.com/users/XinYiMan/orgs","repos_url":"https://api.github.com/users/XinYiMan/repos","events_url":"https://api.github.com/users/XinYiMan/events{/privacy}","received_events_url":"https://api.github.com/users/XinYiMan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/someatoms/jsPDF-AutoTable/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-04-30T14:21:20Z","updated_at":"2015-05-15T06:04:53Z","closed_at":null,"body":"Hello I wanted to know two things, I have a column that I will always display its contents in full, see the attached file in column 2.\r\n\r\nI also want that the columns with the numbers with commas are aligned right. See column 6 of the attached file.\r\n\r\nthanks\r\n![document](https://cloud.githubusercontent.com/assets/10870676/7414747/ec38b6cc-ef54-11e4-9582-4a6c39f24fb7.png)\r\n"},"comment":{"url":"https://api.github.com/repos/someatoms/jsPDF-AutoTable/issues/comments/102272694","html_url":"https://github.com/someatoms/jsPDF-AutoTable/issues/26#issuecomment-102272694","issue_url":"https://api.github.com/repos/someatoms/jsPDF-AutoTable/issues/26","id":102272694,"user":{"login":"XinYiMan","id":10870676,"avatar_url":"https://avatars.githubusercontent.com/u/10870676?v=3","gravatar_id":"","url":"https://api.github.com/users/XinYiMan","html_url":"https://github.com/XinYiMan","followers_url":"https://api.github.com/users/XinYiMan/followers","following_url":"https://api.github.com/users/XinYiMan/following{/other_user}","gists_url":"https://api.github.com/users/XinYiMan/gists{/gist_id}","starred_url":"https://api.github.com/users/XinYiMan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XinYiMan/subscriptions","organizations_url":"https://api.github.com/users/XinYiMan/orgs","repos_url":"https://api.github.com/users/XinYiMan/repos","events_url":"https://api.github.com/users/XinYiMan/events{/privacy}","received_events_url":"https://api.github.com/users/XinYiMan/received_events","type":"User","site_admin":false},"created_at":"2015-05-15T06:04:53Z","updated_at":"2015-05-15T06:04:53Z","body":"Thank you.\nYou are angel :)\n\n2015-05-14 23:00 GMT+02:00 Simon Bengtsson <notifications@github.com>:\n\n> You had an issue with your renderCell method. Try this instead\n>\n> var renderCell = function (x, y, width, height, key, value, row, settings) {\n>\n>     doc.rect(x, y, width, height, 'S');\n>\n>     if (key === 5) {\n>         var strWidth = doc.getStringUnitWidth('' + value) *\n>             doc.internal.getFontSize();\n>         x += width;\n>         x -= 2 * settings.padding;\n>         x -= strWidth;\n>     }\n>\n>     y += settings.lineHeight / 2 +\n>     doc.internal.getLineHeight() / 2 - 2.5;\n>     doc.text('' + value, x + settings.padding, y);\n>\n> };\n>\n> Here is a working jsfiddle <https://jsfiddle.net/someatoms/mhzex91n/3/>\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/someatoms/jsPDF-AutoTable/issues/26#issuecomment-102168130>\n> .\n>\n"}}