{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/13370","labels_url":"https://api.github.com/repos/symfony/symfony/issues/13370/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/13370/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/13370/events","html_url":"https://github.com/symfony/symfony/issues/13370","id":53996726,"number":13370,"title":"[Console][Table] Apply options/style to table cells","user":{"login":"tomzx","id":188960,"avatar_url":"https://avatars.githubusercontent.com/u/188960?v=3","gravatar_id":"","url":"https://api.github.com/users/tomzx","html_url":"https://github.com/tomzx","followers_url":"https://api.github.com/users/tomzx/followers","following_url":"https://api.github.com/users/tomzx/following{/other_user}","gists_url":"https://api.github.com/users/tomzx/gists{/gist_id}","starred_url":"https://api.github.com/users/tomzx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomzx/subscriptions","organizations_url":"https://api.github.com/users/tomzx/orgs","repos_url":"https://api.github.com/users/tomzx/repos","events_url":"https://api.github.com/users/tomzx/events{/privacy}","received_events_url":"https://api.github.com/users/tomzx/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/symfony/symfony/labels/Console","name":"Console","color":"DDDDDD"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-01-11T16:43:21Z","updated_at":"2015-10-19T11:46:19Z","closed_at":null,"body":"It would be nice if `Table` was able to be styled as much as a HTML table can.\r\n\r\nUse case: Center some cells\r\n\r\nI think the way we can approach this with the current implementation is to add an optional `$options` parameter to the methods adding/setting rows.\r\n\r\nThe array would look as such:\r\n\r\n```php\r\n[\r\n\tcellNumber => [\r\n\t\tpropertyA => value,\r\n\t\tpropertyB => value,\r\n\t\tcolspan => value,\r\n\t\trowspan => value,\r\n\t\talign => left|center|right,\r\n\t\tformat => '<info>%s</info>',\r\n\t]\r\n]\r\n```\r\n\r\nBy using keyed cell number (for a single row), we can specify data for only specific cells (does not force the user to specify an empty array for each cell).\r\n\r\nAny undefined property implies the default values for the table."},"comment":{"url":"https://api.github.com/repos/symfony/symfony/issues/comments/149191815","html_url":"https://github.com/symfony/symfony/issues/13370#issuecomment-149191815","issue_url":"https://api.github.com/repos/symfony/symfony/issues/13370","id":149191815,"user":{"login":"freezy-sk","id":661637,"avatar_url":"https://avatars.githubusercontent.com/u/661637?v=3","gravatar_id":"","url":"https://api.github.com/users/freezy-sk","html_url":"https://github.com/freezy-sk","followers_url":"https://api.github.com/users/freezy-sk/followers","following_url":"https://api.github.com/users/freezy-sk/following{/other_user}","gists_url":"https://api.github.com/users/freezy-sk/gists{/gist_id}","starred_url":"https://api.github.com/users/freezy-sk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freezy-sk/subscriptions","organizations_url":"https://api.github.com/users/freezy-sk/orgs","repos_url":"https://api.github.com/users/freezy-sk/repos","events_url":"https://api.github.com/users/freezy-sk/events{/privacy}","received_events_url":"https://api.github.com/users/freezy-sk/received_events","type":"User","site_admin":false},"created_at":"2015-10-19T11:46:19Z","updated_at":"2015-10-19T11:46:19Z","body":":+1: "}}