{"action":"created","issue":{"url":"https://api.github.com/repos/olifolkerd/tabulator/issues/80","repository_url":"https://api.github.com/repos/olifolkerd/tabulator","labels_url":"https://api.github.com/repos/olifolkerd/tabulator/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/olifolkerd/tabulator/issues/80/comments","events_url":"https://api.github.com/repos/olifolkerd/tabulator/issues/80/events","html_url":"https://github.com/olifolkerd/tabulator/issues/80","id":185939822,"number":80,"title":"Keep selected row","user":{"login":"leonardorame","id":1405017,"avatar_url":"https://avatars.githubusercontent.com/u/1405017?v=3","gravatar_id":"","url":"https://api.github.com/users/leonardorame","html_url":"https://github.com/leonardorame","followers_url":"https://api.github.com/users/leonardorame/followers","following_url":"https://api.github.com/users/leonardorame/following{/other_user}","gists_url":"https://api.github.com/users/leonardorame/gists{/gist_id}","starred_url":"https://api.github.com/users/leonardorame/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leonardorame/subscriptions","organizations_url":"https://api.github.com/users/leonardorame/orgs","repos_url":"https://api.github.com/users/leonardorame/repos","events_url":"https://api.github.com/users/leonardorame/events{/privacy}","received_events_url":"https://api.github.com/users/leonardorame/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-28T14:38:16Z","updated_at":"2016-10-28T14:53:55Z","closed_at":null,"body":"Hi, I didn't know this component until now and it looks really neat, a candidate to replace DataTables in some of my apps.\r\n\r\nWhat I don't see in the examples is a way to keep displaying the currently selected row, something like the \"select\" plugin from DataTables."},"comment":{"url":"https://api.github.com/repos/olifolkerd/tabulator/issues/comments/256942441","html_url":"https://github.com/olifolkerd/tabulator/issues/80#issuecomment-256942441","issue_url":"https://api.github.com/repos/olifolkerd/tabulator/issues/80","id":256942441,"user":{"login":"olifolkerd","id":6840524,"avatar_url":"https://avatars.githubusercontent.com/u/6840524?v=3","gravatar_id":"","url":"https://api.github.com/users/olifolkerd","html_url":"https://github.com/olifolkerd","followers_url":"https://api.github.com/users/olifolkerd/followers","following_url":"https://api.github.com/users/olifolkerd/following{/other_user}","gists_url":"https://api.github.com/users/olifolkerd/gists{/gist_id}","starred_url":"https://api.github.com/users/olifolkerd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olifolkerd/subscriptions","organizations_url":"https://api.github.com/users/olifolkerd/orgs","repos_url":"https://api.github.com/users/olifolkerd/repos","events_url":"https://api.github.com/users/olifolkerd/events{/privacy}","received_events_url":"https://api.github.com/users/olifolkerd/received_events","type":"User","site_admin":false},"created_at":"2016-10-28T14:53:55Z","updated_at":"2016-10-28T14:53:55Z","body":"At the moment there is no inbuilt way to do this, but this is next on the road map. \r\n\r\nIn the mean time it is fairly easy to implement yourself.\r\n\r\nAll you need to do is have a column that you use for selecting your rows (could be a tick box a handle or anything, your choice), see the field to ***selected*** or any particular field name that fits in with your scheme. if you are using a check box then you should use the ***tick*** editor to allow users to toggle the selected state of the row.\r\n\r\nYou can then use the ***rowFormatter*** callback to format selected rows appropriately:\r\n```js\r\n$(\"#example-table\").tabulator({\r\n    rowFormatter:function(row, data){\r\n        //row - JQuery object for row\r\n        //data - the data for the row\r\n\r\n        if(data.selected){\r\n            row.css({\"background-color\":\"#A6A6DF\"});\r\n        }\r\n    },\r\n});\r\n```"}}
{"actor":{"display_login":"olifolkerd"}}