{"action":"created","issue":{"url":"https://api.github.com/repos/invoiceninja/invoiceninja/issues/1207","repository_url":"https://api.github.com/repos/invoiceninja/invoiceninja","labels_url":"https://api.github.com/repos/invoiceninja/invoiceninja/issues/1207/labels{/name}","comments_url":"https://api.github.com/repos/invoiceninja/invoiceninja/issues/1207/comments","events_url":"https://api.github.com/repos/invoiceninja/invoiceninja/issues/1207/events","html_url":"https://github.com/invoiceninja/invoiceninja/issues/1207","id":196435654,"number":1207,"title":"[Question] Concatenating text in settings/customize_design#content | pdfmake questions","user":{"login":"Braintelligence","id":6761196,"avatar_url":"https://avatars.githubusercontent.com/u/6761196?v=3","gravatar_id":"","url":"https://api.github.com/users/Braintelligence","html_url":"https://github.com/Braintelligence","followers_url":"https://api.github.com/users/Braintelligence/followers","following_url":"https://api.github.com/users/Braintelligence/following{/other_user}","gists_url":"https://api.github.com/users/Braintelligence/gists{/gist_id}","starred_url":"https://api.github.com/users/Braintelligence/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Braintelligence/subscriptions","organizations_url":"https://api.github.com/users/Braintelligence/orgs","repos_url":"https://api.github.com/users/Braintelligence/repos","events_url":"https://api.github.com/users/Braintelligence/events{/privacy}","received_events_url":"https://api.github.com/users/Braintelligence/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":27,"created_at":"2016-12-19T15:06:42Z","updated_at":"2016-12-19T17:41:07Z","closed_at":null,"body":"Hi again 😄.\r\nSo I'm working on a customized invoice design and I'd like to use this block:\r\n\r\n```\r\n{\r\n    \"text\": \"$account.work_phone\",\r\n    \"margin\": [\r\n      5,\r\n      30,\r\n      10,\r\n      5\r\n    ],\r\n    \"style\": \"socialTEL\",\r\n    \"absolutePosition\": {\r\n      \"x\": 100,\r\n      \"y\": 100\r\n    }\r\n  },\r\n```\r\n\r\nbut instead of only the phone number I want the string \"TEL | \" to be concatenated before it. So it would spell \"TEL | \" + $account.work_phone.\r\n\r\nIt seems like I can't provide JavaScript functions there and I'm a total noob concerning pdfmake.\r\n\r\nIs there a simple way to concatenate a string and a variable here?\r\n"},"comment":{"url":"https://api.github.com/repos/invoiceninja/invoiceninja/issues/comments/268028342","html_url":"https://github.com/invoiceninja/invoiceninja/issues/1207#issuecomment-268028342","issue_url":"https://api.github.com/repos/invoiceninja/invoiceninja/issues/1207","id":268028342,"user":{"login":"Braintelligence","id":6761196,"avatar_url":"https://avatars.githubusercontent.com/u/6761196?v=3","gravatar_id":"","url":"https://api.github.com/users/Braintelligence","html_url":"https://github.com/Braintelligence","followers_url":"https://api.github.com/users/Braintelligence/followers","following_url":"https://api.github.com/users/Braintelligence/following{/other_user}","gists_url":"https://api.github.com/users/Braintelligence/gists{/gist_id}","starred_url":"https://api.github.com/users/Braintelligence/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Braintelligence/subscriptions","organizations_url":"https://api.github.com/users/Braintelligence/orgs","repos_url":"https://api.github.com/users/Braintelligence/repos","events_url":"https://api.github.com/users/Braintelligence/events{/privacy}","received_events_url":"https://api.github.com/users/Braintelligence/received_events","type":"User","site_admin":false},"created_at":"2016-12-19T17:41:07Z","updated_at":"2016-12-19T17:41:07Z","body":"If I apply a site-wide margin it will be also used on following pages, though, even if I use the header only on the first page.\r\n\r\nThis is also true for Bold. Page 2 misses the canvas and all infos but doesn't fill up the unused space with anything else.\r\n\r\nIs there a CSS id/class you can call so you can apply a top-margin for the header **only**?"}}
{"actor":{"display_login":"Braintelligence"}}