{"action":"created","issue":{"url":"https://api.github.com/repos/bebraw/reactabular/issues/56","labels_url":"https://api.github.com/repos/bebraw/reactabular/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/bebraw/reactabular/issues/56/comments","events_url":"https://api.github.com/repos/bebraw/reactabular/issues/56/events","html_url":"https://github.com/bebraw/reactabular/issues/56","id":85886878,"number":56,"title":"Figure out nice semantics for attaching handlers per row","user":{"login":"bebraw","id":166921,"avatar_url":"https://avatars.githubusercontent.com/u/166921?v=3","gravatar_id":"","url":"https://api.github.com/users/bebraw","html_url":"https://github.com/bebraw","followers_url":"https://api.github.com/users/bebraw/followers","following_url":"https://api.github.com/users/bebraw/following{/other_user}","gists_url":"https://api.github.com/users/bebraw/gists{/gist_id}","starred_url":"https://api.github.com/users/bebraw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bebraw/subscriptions","organizations_url":"https://api.github.com/users/bebraw/orgs","repos_url":"https://api.github.com/users/bebraw/repos","events_url":"https://api.github.com/users/bebraw/events{/privacy}","received_events_url":"https://api.github.com/users/bebraw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-06-07T10:12:02Z","updated_at":"2015-06-11T16:47:55Z","closed_at":null,"body":"To quote @utdemir at https://github.com/bebraw/reactabular/commit/2837cc9c6de070fb3f19831a81ab092dc6f6ae1a#commitcomment-11556460 .\r\n\r\n> Well, reactabular looks pretty configurable, thanks for building it like that :). My only small nitpick was when I tried to put an onclick() action to a row, instead of a column; I couldn't figure out a way, and had to put the same onClick actions to every column and dispatched via rowIndex. I'd prefer to put an onclick action to every data, or every row etc.\r\n\r\n```javascript\r\n  [{\r\n        property: 'displayName',\r\n        header: 'Name',\r\n        cell: (value, data, rowIndex) =>\r\n          <span\r\n            onClick={() => this.navigate(data[rowIndex].id)}\r\n            className={this.state.threatId == data[rowIndex].id ? \"active\" : \"\" }\r\n            >\r\n            {value}\r\n          </span>\r\n      }, {\r\n        property: 'category',\r\n        header: 'Category',\r\n        cell: (value, data, rowIndex) =>\r\n          <span\r\n            onClick={() => this.navigate(data[rowIndex].id)}\r\n            className={this.state.id == data[rowIndex].id ? \"active\" : \"\" }\r\n            >\r\n            {data[rowIndex].category[0]}\r\n          </span>\r\n      }];\r\n```\r\n\r\nWe probably want to expose `tr`'s somehow to make this happen. Need to figure out where/how to do that most naturally."},"comment":{"url":"https://api.github.com/repos/bebraw/reactabular/issues/comments/111203898","html_url":"https://github.com/bebraw/reactabular/issues/56#issuecomment-111203898","issue_url":"https://api.github.com/repos/bebraw/reactabular/issues/56","id":111203898,"user":{"login":"eviltoylet","id":1088877,"avatar_url":"https://avatars.githubusercontent.com/u/1088877?v=3","gravatar_id":"","url":"https://api.github.com/users/eviltoylet","html_url":"https://github.com/eviltoylet","followers_url":"https://api.github.com/users/eviltoylet/followers","following_url":"https://api.github.com/users/eviltoylet/following{/other_user}","gists_url":"https://api.github.com/users/eviltoylet/gists{/gist_id}","starred_url":"https://api.github.com/users/eviltoylet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eviltoylet/subscriptions","organizations_url":"https://api.github.com/users/eviltoylet/orgs","repos_url":"https://api.github.com/users/eviltoylet/repos","events_url":"https://api.github.com/users/eviltoylet/events{/privacy}","received_events_url":"https://api.github.com/users/eviltoylet/received_events","type":"User","site_admin":false},"created_at":"2015-06-11T16:47:55Z","updated_at":"2015-06-11T16:47:55Z","body":"@utdemir agreed. Thanks for presenting like that :)\r\n@bebraw great work as always!"}}