{"action":"created","issue":{"url":"https://api.github.com/repos/rstudio/DT/issues/171","labels_url":"https://api.github.com/repos/rstudio/DT/issues/171/labels{/name}","comments_url":"https://api.github.com/repos/rstudio/DT/issues/171/comments","events_url":"https://api.github.com/repos/rstudio/DT/issues/171/events","html_url":"https://github.com/rstudio/DT/issues/171","id":104317170,"number":171,"title":"Rshiny Table with set width and collapse text overflow","user":{"login":"Monty9","id":13947738,"avatar_url":"https://avatars.githubusercontent.com/u/13947738?v=3","gravatar_id":"","url":"https://api.github.com/users/Monty9","html_url":"https://github.com/Monty9","followers_url":"https://api.github.com/users/Monty9/followers","following_url":"https://api.github.com/users/Monty9/following{/other_user}","gists_url":"https://api.github.com/users/Monty9/gists{/gist_id}","starred_url":"https://api.github.com/users/Monty9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Monty9/subscriptions","organizations_url":"https://api.github.com/users/Monty9/orgs","repos_url":"https://api.github.com/users/Monty9/repos","events_url":"https://api.github.com/users/Monty9/events{/privacy}","received_events_url":"https://api.github.com/users/Monty9/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-01T17:31:35Z","updated_at":"2015-09-22T15:13:37Z","closed_at":"2015-09-22T15:13:37Z","body":"How do we pass CSS arguments text-overflow: ellipsis; to renderDataTable in R shiny ? I have uneven text description in columns, by Autowidth the rows and columns are expanded based on the contents in respective cell.\r\n\r\nI would like to be able to input \"ellipsis\", for user to be able to expand the cell to read text. Below is my server.r code. I tried to use the eg, explained in http://rstudio.github.io/DT/options.html. However, could not get what I am looking for. Appreciate if any inputs , suggestions are provided.\r\n\r\nThank you\r\n\r\n```r\r\noutput$PM_output <- renderDataTable(expr = datatable(data_frame), escape = F,\r\n                                       selection = 'multiple', options = list(autoWidth = T,\r\n                                       LengthMenu = c(5, 30, 50), columnDefs = list(list(targets =\r\n                                       c(6,7,8,9) - 1, searchable = F)), pageLength = 1),\r\n                                       list(columnDefs = list(list(targets = 7, render =\r\n                                         JS(\"function(data, type, row, meta) {\", \"return type === \r\n                                         'display' && data.length > 6 ?\",\"'<span title=\\\"' + data +\r\n                                       '\\\">' + data.substr(0, 6) + '...</span>' : data;\",\"}\")\r\n                                         ))), callback = JS('table.page(3).draw(false);')))\r\n```"},"comment":{"url":"https://api.github.com/repos/rstudio/DT/issues/comments/142319944","html_url":"https://github.com/rstudio/DT/issues/171#issuecomment-142319944","issue_url":"https://api.github.com/repos/rstudio/DT/issues/171","id":142319944,"user":{"login":"Monty9","id":13947738,"avatar_url":"https://avatars.githubusercontent.com/u/13947738?v=3","gravatar_id":"","url":"https://api.github.com/users/Monty9","html_url":"https://github.com/Monty9","followers_url":"https://api.github.com/users/Monty9/followers","following_url":"https://api.github.com/users/Monty9/following{/other_user}","gists_url":"https://api.github.com/users/Monty9/gists{/gist_id}","starred_url":"https://api.github.com/users/Monty9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Monty9/subscriptions","organizations_url":"https://api.github.com/users/Monty9/orgs","repos_url":"https://api.github.com/users/Monty9/repos","events_url":"https://api.github.com/users/Monty9/events{/privacy}","received_events_url":"https://api.github.com/users/Monty9/received_events","type":"User","site_admin":false},"created_at":"2015-09-22T15:13:37Z","updated_at":"2015-09-22T15:13:37Z","body":"Hi yihui,\r\ndo you have any inputs for bove Q ?"}}