r - Tool Tip Shiny renderDataTable for only one column name -


i have table in shiny , want add 1 tooltip column name "species", i.e. other columns should not have tooltip. have manged add tooltip of them, don't know how can set content specific columns.

shinyapp(   ui = fluidpage(     fluidrow(       column(12,              datatableoutput('table')       )     )   ),   server = function(input, output) {     output$table <- renderdatatable(iris,  options = list(       pagelength = 5,       initcomplete = i("function(settings, json) {                                       $('th').each( function(){this.setattribute( 'title', 'test' );});                                         $('th').tooltip();                                        }")))                            }     ) 

i have modified code tooltip 4th column name ie "species".

library(shiny)  shinyapp(   ui = fluidpage(     fluidrow(       column(12,              datatableoutput('table')       )     )   ),   server = function(input, output) {     output$table <- renderdatatable(iris,  options = list(       pagelength = 5,       initcomplete = i("function(settings, json) {                        $('th:eq(4)').each( function(){this.setattribute( 'title', 'test' );});                          $('th').tooltip();     }")))      }       ) 

hope helps!


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -