{"action":"opened","issue":{"url":"https://api.github.com/repos/rstudio/DT/issues/143","labels_url":"https://api.github.com/repos/rstudio/DT/issues/143/labels{/name}","comments_url":"https://api.github.com/repos/rstudio/DT/issues/143/comments","events_url":"https://api.github.com/repos/rstudio/DT/issues/143/events","html_url":"https://github.com/rstudio/DT/issues/143","id":95981094,"number":143,"title":"client-side datatable with bootstrap style - possible?","user":{"login":"vnijs","id":2998956,"avatar_url":"https://avatars.githubusercontent.com/u/2998956?v=3","gravatar_id":"","url":"https://api.github.com/users/vnijs","html_url":"https://github.com/vnijs","followers_url":"https://api.github.com/users/vnijs/followers","following_url":"https://api.github.com/users/vnijs/following{/other_user}","gists_url":"https://api.github.com/users/vnijs/gists{/gist_id}","starred_url":"https://api.github.com/users/vnijs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vnijs/subscriptions","organizations_url":"https://api.github.com/users/vnijs/orgs","repos_url":"https://api.github.com/users/vnijs/repos","events_url":"https://api.github.com/users/vnijs/events{/privacy}","received_events_url":"https://api.github.com/users/vnijs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-20T03:58:03Z","updated_at":"2015-07-20T03:58:03Z","closed_at":null,"body":"I developed a pivot table feature for Radiant with dplyr and DT. Seems to work nicely within a shiny app. See the link to code for exported functions below.\r\n\r\nhttps://github.com/vnijs/radiant/blob/master/R/pivotr.R\r\n\r\nThe functions can be used without shiny but I had to set the style to \"default\" because I couldn't get the \"boostrap\" style to work with client-side DT (see screenshot below). According to [this page](http://rstudio.github.io/DT/005-bootstrap.html) it should be possible but when running the code (DT 0.1.26) there is no bootstrap styling (see screenshot below).\r\n\r\nTo run the code mentioned you would need Radiant installed:\r\n\r\n```r\r\ninstall.packages(\"radiant\", repos = \"http://vnijs.github.io/radiant_miniCRAN/\")\r\nlibrary(radiant)\r\n\r\nresult <- pivotr(\"diamonds\", cvars = \"cut\") \r\nresult$shiny <- TRUE\r\nmake_dt(result)\r\n```\r\n\r\nTo see the pivot table in shiny (Pivotr tab): https://internal.shinyapps.io/vnijs/base/?SSUID=e4e29d7ca1\r\n\r\n<img width=\"435\" alt=\"screen shot 2015-07-19 at 8 27 35 pm\" src=\"https://cloud.githubusercontent.com/assets/2998956/8769678/672b0916-2e57-11e5-9afb-449e9cf90ebe.png\">\r\n\r\n<img width=\"626\" alt=\"screen shot 2015-07-19 at 8 55 55 pm\" src=\"https://cloud.githubusercontent.com/assets/2998956/8769718/993e73d8-2e58-11e5-99ee-c3cd48335c9d.png\">"}}