{"action":"created","issue":{"url":"https://api.github.com/repos/gbrock/laravel-table/issues/7","labels_url":"https://api.github.com/repos/gbrock/laravel-table/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/gbrock/laravel-table/issues/7/comments","events_url":"https://api.github.com/repos/gbrock/laravel-table/issues/7/events","html_url":"https://github.com/gbrock/laravel-table/issues/7","id":125618078,"number":7,"title":"How to pass classes, when creating table through array?","user":{"login":"jonasinlu","id":16610763,"avatar_url":"https://avatars.githubusercontent.com/u/16610763?v=3","gravatar_id":"","url":"https://api.github.com/users/jonasinlu","html_url":"https://github.com/jonasinlu","followers_url":"https://api.github.com/users/jonasinlu/followers","following_url":"https://api.github.com/users/jonasinlu/following{/other_user}","gists_url":"https://api.github.com/users/jonasinlu/gists{/gist_id}","starred_url":"https://api.github.com/users/jonasinlu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonasinlu/subscriptions","organizations_url":"https://api.github.com/users/jonasinlu/orgs","repos_url":"https://api.github.com/users/jonasinlu/repos","events_url":"https://api.github.com/users/jonasinlu/events{/privacy}","received_events_url":"https://api.github.com/users/jonasinlu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gbrock/laravel-table/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-08T14:00:59Z","updated_at":"2016-01-15T12:01:01Z","closed_at":null,"body":"$table = Table::create($rows, [\r\n            'id' => '',\r\n            'name' => ['label' => trans('projects.index_label_name'), 'class' => '**test-class**'],\r\n            'estimate' => trans('projects.index_label_estimate'),\r\n            'asignees' => trans('projects.index_label_asignees'),\r\n            'status' => trans('projects.index_label_status'),\r\n            'start' => trans('projects.index_label_start'),\r\n            'end' => trans('projects.index_label_end'),\r\n        ]);\r\n\r\nin this example, i'm trying to achieve the same thing as in example that you have provided with addClass() method:\r\n\r\n$table->addColumn('status_id', trans('tasks.status'), function($model) {\r\n            return $model->getStatusName();\r\n        })->**addClass**('fw-150 hidden-xs');\r\n\r\nis this possible with current release or do you plan on extending this library in future to support this?"},"comment":{"url":"https://api.github.com/repos/gbrock/laravel-table/issues/comments/171944054","html_url":"https://github.com/gbrock/laravel-table/issues/7#issuecomment-171944054","issue_url":"https://api.github.com/repos/gbrock/laravel-table/issues/7","id":171944054,"user":{"login":"gbrock","id":4151394,"avatar_url":"https://avatars.githubusercontent.com/u/4151394?v=3","gravatar_id":"","url":"https://api.github.com/users/gbrock","html_url":"https://github.com/gbrock","followers_url":"https://api.github.com/users/gbrock/followers","following_url":"https://api.github.com/users/gbrock/following{/other_user}","gists_url":"https://api.github.com/users/gbrock/gists{/gist_id}","starred_url":"https://api.github.com/users/gbrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gbrock/subscriptions","organizations_url":"https://api.github.com/users/gbrock/orgs","repos_url":"https://api.github.com/users/gbrock/repos","events_url":"https://api.github.com/users/gbrock/events{/privacy}","received_events_url":"https://api.github.com/users/gbrock/received_events","type":"User","site_admin":false},"created_at":"2016-01-15T12:01:01Z","updated_at":"2016-01-15T12:01:01Z","body":"Thank you for the kind words!\r\n\r\nConsidering this further, I probably wouldn't use it that way; I like keeping controllers as simple as possible, while putting every bit of HTML and HTML logic within view files.  But, I also appreciate that everyone does things in their own way, and more options is never a bad thing. :thumbsup:"}}