{"action":"created","issue":{"url":"https://api.github.com/repos/tannerlinsley/react-table/issues/13","repository_url":"https://api.github.com/repos/tannerlinsley/react-table","labels_url":"https://api.github.com/repos/tannerlinsley/react-table/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/tannerlinsley/react-table/issues/13/comments","events_url":"https://api.github.com/repos/tannerlinsley/react-table/issues/13/events","html_url":"https://github.com/tannerlinsley/react-table/issues/13","id":187383536,"number":13,"title":"I'm trying to add a checkbox input to a cell","user":{"login":"hegelstad","id":6997343,"avatar_url":"https://avatars.githubusercontent.com/u/6997343?v=3","gravatar_id":"","url":"https://api.github.com/users/hegelstad","html_url":"https://github.com/hegelstad","followers_url":"https://api.github.com/users/hegelstad/followers","following_url":"https://api.github.com/users/hegelstad/following{/other_user}","gists_url":"https://api.github.com/users/hegelstad/gists{/gist_id}","starred_url":"https://api.github.com/users/hegelstad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hegelstad/subscriptions","organizations_url":"https://api.github.com/users/hegelstad/orgs","repos_url":"https://api.github.com/users/hegelstad/repos","events_url":"https://api.github.com/users/hegelstad/events{/privacy}","received_events_url":"https://api.github.com/users/hegelstad/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-04T16:47:47Z","updated_at":"2016-11-06T16:32:10Z","closed_at":null,"body":"```\r\nconst data = [{\r\n    name: 'Tanner Linsley',\r\n    age: 26,\r\n    friend: {\r\n        name: 'Jason Maurer',\r\n        age: 23\r\n    }\r\n},{\r\n    name: 'Banner Dansley',\r\n    age: 19,\r\n    friend: {\r\n        name: 'Jason Mraz',\r\n        age: 30\r\n    }\r\n}]\r\n\r\nconst columns = [{\r\n  header: 'Name',\r\n  accessor: 'name' // String-based value accessors !\r\n}, {\r\n  header: 'Age',\r\n  accessor: 'age',\r\n  render: <input type=\"checkbox\" checked=\"checked\"/> // Custom cell components!\r\n}, {\r\n  header: 'Friend Name',\r\n  accessor: 'friend.name' // Custom value accessors!\r\n}, {\r\n  header: 'Friend Age',\r\n  //header: props => <span>Friend Age</span>, // Custom header components!\r\n  accessor: 'friend.age'\r\n}]\r\n\r\n<ReactTable\r\n     data={data}\r\n     columns={columns}\r\n     minRows={0}\r\n/>\r\n```\r\n\r\nResult: \r\n\r\n```\r\n<div class=\"-td-inner\">\r\n    <input type=\"checkbox\" value=\"on\">   <----- should be rendered as <input type=\"checkbox\" checked=\"checked\"/>\r\n</div>\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/tannerlinsley/react-table/issues/comments/258692286","html_url":"https://github.com/tannerlinsley/react-table/issues/13#issuecomment-258692286","issue_url":"https://api.github.com/repos/tannerlinsley/react-table/issues/13","id":258692286,"user":{"login":"tannerlinsley","id":5580297,"avatar_url":"https://avatars.githubusercontent.com/u/5580297?v=3","gravatar_id":"","url":"https://api.github.com/users/tannerlinsley","html_url":"https://github.com/tannerlinsley","followers_url":"https://api.github.com/users/tannerlinsley/followers","following_url":"https://api.github.com/users/tannerlinsley/following{/other_user}","gists_url":"https://api.github.com/users/tannerlinsley/gists{/gist_id}","starred_url":"https://api.github.com/users/tannerlinsley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tannerlinsley/subscriptions","organizations_url":"https://api.github.com/users/tannerlinsley/orgs","repos_url":"https://api.github.com/users/tannerlinsley/repos","events_url":"https://api.github.com/users/tannerlinsley/events{/privacy}","received_events_url":"https://api.github.com/users/tannerlinsley/received_events","type":"User","site_admin":false},"created_at":"2016-11-06T16:32:10Z","updated_at":"2016-11-06T16:32:10Z","body":"That is the callback for when the page and sorting changes. It is an\nopportunity for you to fetch server side data. Use it with the 'manual'\nprop.\nOn Sun, Nov 6, 2016 at 9:29 AM Nikolai Hegelstad <notifications@github.com>\nwrote:\n\n> checked={true} doesn't change anything.\n>\n> What am I supposed to put within:\n>\n> onChange={(state, instance) => {\n>\n>                 }}\n>\n> —\n> You are receiving this because you commented.\n>\n>\n> Reply to this email directly, view it on GitHub\n> <https://github.com/tannerlinsley/react-table/issues/13#issuecomment-258692158>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/AFUmCYH8m2RaI3RdhiLhYnm4W4sWvzfJks5q7gCHgaJpZM4KpwTg>\n> .\n>\n"}}
{"actor":{"display_login":"tannerlinsley"}}