{"action":"created","issue":{"url":"https://api.github.com/repos/octobercms/october/issues/3509","repository_url":"https://api.github.com/repos/octobercms/october","labels_url":"https://api.github.com/repos/octobercms/october/issues/3509/labels{/name}","comments_url":"https://api.github.com/repos/octobercms/october/issues/3509/comments","events_url":"https://api.github.com/repos/octobercms/october/issues/3509/events","html_url":"https://github.com/octobercms/october/pull/3509","id":314935194,"number":3509,"title":"Added align property to list columns definition","user":{"login":"tobias-kuendig","id":8600029,"avatar_url":"https://avatars3.githubusercontent.com/u/8600029?v=4","gravatar_id":"","url":"https://api.github.com/users/tobias-kuendig","html_url":"https://github.com/tobias-kuendig","followers_url":"https://api.github.com/users/tobias-kuendig/followers","following_url":"https://api.github.com/users/tobias-kuendig/following{/other_user}","gists_url":"https://api.github.com/users/tobias-kuendig/gists{/gist_id}","starred_url":"https://api.github.com/users/tobias-kuendig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobias-kuendig/subscriptions","organizations_url":"https://api.github.com/users/tobias-kuendig/orgs","repos_url":"https://api.github.com/users/tobias-kuendig/repos","events_url":"https://api.github.com/users/tobias-kuendig/events{/privacy}","received_events_url":"https://api.github.com/users/tobias-kuendig/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-17T07:21:12Z","updated_at":"2018-04-17T16:44:14Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/octobercms/october/pulls/3509","html_url":"https://github.com/octobercms/october/pull/3509","diff_url":"https://github.com/octobercms/october/pull/3509.diff","patch_url":"https://github.com/octobercms/october/pull/3509.patch"},"body":"By default all backend `text` columns are aligned left, columns with the type `number` are aligned right.\r\n\r\nThis is not always ideal: If I have an order total like `2'000.00 €` I want to format it as right aligned text. Defining a css class like `text-right` in the `cssClass` property allows me to format the rows but not the header. \r\n\r\nThis PR adds an `align` property to the columns definition that accepts the values `left`, `right` and `center`. If specified a `list-cell-align-*` class is added to the rows and the header. This class will take precedence over the default `number` alignment if specified.\r\n\r\nIf this PR gets merged I will gladly update the docs accordingly.\r\n\r\nExample config:\r\n\r\n```yml\r\ntotal:\r\n    label: Order Total\r\n    path: $/acme/plugin/models/order/_total_formatted.htm\r\n    type: partial\r\n    align: right\r\n```"},"comment":{"url":"https://api.github.com/repos/octobercms/october/issues/comments/382062485","html_url":"https://github.com/octobercms/october/pull/3509#issuecomment-382062485","issue_url":"https://api.github.com/repos/octobercms/october/issues/3509","id":382062485,"user":{"login":"LukeTowers","id":7253840,"avatar_url":"https://avatars0.githubusercontent.com/u/7253840?v=4","gravatar_id":"","url":"https://api.github.com/users/LukeTowers","html_url":"https://github.com/LukeTowers","followers_url":"https://api.github.com/users/LukeTowers/followers","following_url":"https://api.github.com/users/LukeTowers/following{/other_user}","gists_url":"https://api.github.com/users/LukeTowers/gists{/gist_id}","starred_url":"https://api.github.com/users/LukeTowers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LukeTowers/subscriptions","organizations_url":"https://api.github.com/users/LukeTowers/orgs","repos_url":"https://api.github.com/users/LukeTowers/repos","events_url":"https://api.github.com/users/LukeTowers/events{/privacy}","received_events_url":"https://api.github.com/users/LukeTowers/received_events","type":"User","site_admin":false},"created_at":"2018-04-17T16:44:14Z","updated_at":"2018-04-17T16:44:14Z","author_association":"MEMBER","body":"Can you post some screenshots of before / after and all three align options? Preferably with more than one column @tobias-kuendig "}}
{"actor":{"display_login":"LukeTowers"}}