How to dynamically hide the columns?
How to dynamically hide the columns?
NewBee2017
Posts: 4Questions: 3Answers: 0
Without writing JS, can some columns be dynamically hidden?
This discussion has been closed.
Answers
Yes, use Buttons extension and
colvis
button, see this example.See more articles about jQuery DataTables on gyrocode.com.
I create a checkgroupbox in Shiny App. Based on the user input, the columns associated will be dynamically show/hide? Is there a way to do it?
Yes, using the
columns().visible()
method. You can't do it without writing Javascript though - DataTables is a Javascript library...Allan