{"action":"created","issue":{"url":"https://api.github.com/repos/reactabular/reactabular/issues/213","repository_url":"https://api.github.com/repos/reactabular/reactabular","labels_url":"https://api.github.com/repos/reactabular/reactabular/issues/213/labels{/name}","comments_url":"https://api.github.com/repos/reactabular/reactabular/issues/213/comments","events_url":"https://api.github.com/repos/reactabular/reactabular/issues/213/events","html_url":"https://github.com/reactabular/reactabular/issues/213","id":180733950,"number":213,"title":"How to search by custom id field with select.row?","user":{"login":"CaptainChemist","id":1043257,"avatar_url":"https://avatars.githubusercontent.com/u/1043257?v=3","gravatar_id":"","url":"https://api.github.com/users/CaptainChemist","html_url":"https://github.com/CaptainChemist","followers_url":"https://api.github.com/users/CaptainChemist/followers","following_url":"https://api.github.com/users/CaptainChemist/following{/other_user}","gists_url":"https://api.github.com/users/CaptainChemist/gists{/gist_id}","starred_url":"https://api.github.com/users/CaptainChemist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CaptainChemist/subscriptions","organizations_url":"https://api.github.com/users/CaptainChemist/orgs","repos_url":"https://api.github.com/users/CaptainChemist/repos","events_url":"https://api.github.com/users/CaptainChemist/events{/privacy}","received_events_url":"https://api.github.com/users/CaptainChemist/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-03T20:08:10Z","updated_at":"2016-10-07T03:00:29Z","closed_at":null,"body":"Thanks for the great project! I can't quite figure out how to use the select.row when the id is custom. My `id` is `_id`, how do I modify this setState function to look among the `_id`s instead of `id`? I know it says that you can do it in the manual, but I just couldn't figure out how from the code. \r\n\r\nThis is the sample code in the documentation. My initial guess was to sub in `rows[selectedRowIndex]._id` but that doesn't seem to work.\r\n```\r\n    this.setState(\r\n      select.row({\r\n        rows,\r\n        selectedRowId: rows[selectedRowIndex].id\r\n      })\r\n    );\r\n```\r\n\r\nI can \"fix\" the issue by going into the row.js file and changing to `row._id === selectedRowId` on line 13 but that seems like a bad idea."},"comment":{"url":"https://api.github.com/repos/reactabular/reactabular/issues/comments/252142348","html_url":"https://github.com/reactabular/reactabular/issues/213#issuecomment-252142348","issue_url":"https://api.github.com/repos/reactabular/reactabular/issues/213","id":252142348,"user":{"login":"CaptainChemist","id":1043257,"avatar_url":"https://avatars.githubusercontent.com/u/1043257?v=3","gravatar_id":"","url":"https://api.github.com/users/CaptainChemist","html_url":"https://github.com/CaptainChemist","followers_url":"https://api.github.com/users/CaptainChemist/followers","following_url":"https://api.github.com/users/CaptainChemist/following{/other_user}","gists_url":"https://api.github.com/users/CaptainChemist/gists{/gist_id}","starred_url":"https://api.github.com/users/CaptainChemist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CaptainChemist/subscriptions","organizations_url":"https://api.github.com/users/CaptainChemist/orgs","repos_url":"https://api.github.com/users/CaptainChemist/repos","events_url":"https://api.github.com/users/CaptainChemist/events{/privacy}","received_events_url":"https://api.github.com/users/CaptainChemist/received_events","type":"User","site_admin":false},"created_at":"2016-10-07T03:00:29Z","updated_at":"2016-10-07T03:00:29Z","body":"Yes, I have looked at that particular file and that is where I saw on `line 3` that it looks for `row.id === selectedRowId` instead of say `row[customKeyName] === selectedRowId` with the ability of passing in `customKeyName` to define the custom key name. I am really sorry but I think I am failing to understand how I can use `isSelected` to pass in a custom key name. How would I change the `select.row` call in my first post to pass in the custom key name without resorting to changing the `row.js` file?  Thanks so much!"}}
{"actor":{"display_login":"CaptainChemist"}}