{"action":"created","issue":{"url":"https://api.github.com/repos/simonbengtsson/jsPDF-AutoTable/issues/255","repository_url":"https://api.github.com/repos/simonbengtsson/jsPDF-AutoTable","labels_url":"https://api.github.com/repos/simonbengtsson/jsPDF-AutoTable/issues/255/labels{/name}","comments_url":"https://api.github.com/repos/simonbengtsson/jsPDF-AutoTable/issues/255/comments","events_url":"https://api.github.com/repos/simonbengtsson/jsPDF-AutoTable/issues/255/events","html_url":"https://github.com/simonbengtsson/jsPDF-AutoTable/issues/255","id":223966414,"number":255,"title":"cells.styles.fontStyle does not work in drawHeaderCell","user":{"login":"balajigraman","id":17093075,"avatar_url":"https://avatars3.githubusercontent.com/u/17093075?v=3","gravatar_id":"","url":"https://api.github.com/users/balajigraman","html_url":"https://github.com/balajigraman","followers_url":"https://api.github.com/users/balajigraman/followers","following_url":"https://api.github.com/users/balajigraman/following{/other_user}","gists_url":"https://api.github.com/users/balajigraman/gists{/gist_id}","starred_url":"https://api.github.com/users/balajigraman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balajigraman/subscriptions","organizations_url":"https://api.github.com/users/balajigraman/orgs","repos_url":"https://api.github.com/users/balajigraman/repos","events_url":"https://api.github.com/users/balajigraman/events{/privacy}","received_events_url":"https://api.github.com/users/balajigraman/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-04-24T22:11:40Z","updated_at":"2017-04-30T03:03:17Z","closed_at":"2017-04-30T03:03:17Z","body":"Hi,\r\n\r\nI have a table in `jsPDF-AutoTable,` where the data is displayed in a different way, the column headers are in odd columns and the actual data in even columns.\r\n\r\nfillColor does work though, I am setting it to false for even columns. Any pointers would be of great help.\r\n\r\n`headerStyles: {`\r\n\t\t`fillColor: [248, 248, 248],`\r\n\t\t`fillType: \"FD\",`\r\n\t\t`fontSize: 8,`\r\n\t\t`textColor: [0, 0, 0],`\r\n\t\t`fontStyle: 'normal'`\r\n`},`\r\n`drawHeaderCell: function(cell, data) {`\r\n`\t\tif (cell.raw === 'COMPANY' ||`\r\n`\t\t\tcell.raw === 'JOB#' ||`\r\n`\t\t\tcell.raw == 'TICKET DATE') {`\r\n`\t\t      cell.styles.fontStyle = \"bold\";`\r\n`\t\t} else {`\r\n`\t\t      cell.styles.fillColor = false;`\r\n`\t\t}`\r\n`},`\r\nThanks\r\nBalaji"},"comment":{"url":"https://api.github.com/repos/simonbengtsson/jsPDF-AutoTable/issues/comments/298207904","html_url":"https://github.com/simonbengtsson/jsPDF-AutoTable/issues/255#issuecomment-298207904","issue_url":"https://api.github.com/repos/simonbengtsson/jsPDF-AutoTable/issues/255","id":298207904,"user":{"login":"balajigraman","id":17093075,"avatar_url":"https://avatars3.githubusercontent.com/u/17093075?v=3","gravatar_id":"","url":"https://api.github.com/users/balajigraman","html_url":"https://github.com/balajigraman","followers_url":"https://api.github.com/users/balajigraman/followers","following_url":"https://api.github.com/users/balajigraman/following{/other_user}","gists_url":"https://api.github.com/users/balajigraman/gists{/gist_id}","starred_url":"https://api.github.com/users/balajigraman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balajigraman/subscriptions","organizations_url":"https://api.github.com/users/balajigraman/orgs","repos_url":"https://api.github.com/users/balajigraman/repos","events_url":"https://api.github.com/users/balajigraman/events{/privacy}","received_events_url":"https://api.github.com/users/balajigraman/received_events","type":"User","site_admin":false},"created_at":"2017-04-30T03:03:17Z","updated_at":"2017-04-30T03:03:17Z","body":"Got it resolved, header row hidden and then the body rows, which i was able to put styles on. "}}
{"actor":{"display_login":"balajigraman"}}