Note that there are some explanatory texts on larger screens.

plurals
  1. POR Shiny, Remove Within-Column Filters from DataTables
    text
    copied!<p>[also posted in Shiny Google Group]</p> <p>I am encountering some (I believe) unexpected behavior when I attempt to display a dataTable. When I display the table, my goal is to remove the majority of the sort/pagination/filter/processing options. So far setting bSort=0, bProcessing=0, bPaginate=0, bInfo=0 appears to produce desired results. However when I set bFilter=0, only the "global" filter box in the upper right had corner is removed; the within-column filter boxes remain (I expected bFilter=0 to remove all filter boxes). </p> <p>Can anyone help with code to remove the within-column filter boxes (please and thank-you). [Also, I am aware of the column-specific format options, but have so-far been unable to implement them successfully to eliminate the within-column formats]. I have included minimal code below to reproduce the problem:</p> <pre><code>shinyUI(pageWithSidebar( #my code has a header panel; headerPanel("Table Example"), #my code has a sidebar panel; sidebarPanel(helpText("Stuff Here")), #table is displayed in the main panel; mainPanel(dataTableOutput("myTable")) )) shinyServer(function(input, output) { #example dataTable that produces undesired result; output$myTable &lt;- renderDataTable({ as.data.frame(matrix(sample(1:10,100,replace=TRUE),nrow=20,ncol=10)) }, options = list(bFilter=0, bSort=0, bProcessing=0, bPaginate=0, bInfo=0)) }) </code></pre> <p>[Behavior appears both running from server and locally. Shiny 0.7.0.99. Using Google Chrome]</p> <p>Thanks-in-advance!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload