删除 "Showing 1 to N of N Entries" Shiny DT

标签 r shiny dt

问题:

我希望删除 Shiny 的 DT 中显示的 n 个条目字段中的 1 到 n。请参阅下面的图片,了解我想删除的内容。

任何见解都非常感谢。

最佳答案

您可以使用 dom选项来确定显示数据表的哪些元素。在对数据表的调用中,您将命名的选项列表传递给 options争论。 dom接受一个字符串,其中每个元素对应一个 DOM 元素。

# only display the table, and nothing else
datatable(head(iris), options = list(dom = 't'))

# the filtering box and the table
datatable(head(iris), options = list(dom = 'ft'))

在您的情况下,i是表信息摘要:这是您要省略的。您还可以使用此方法删除其他元素,例如搜索框或分页控件。

有关如何在 R 中执行此操作,请参阅本页第 4.2 节:https://rstudio.github.io/DT/options.html

数据表手册中的这个页面讨论了 DOM 选项:https://datatables.net/reference/option/dom

关于删除 "Showing 1 to N of N Entries" Shiny DT,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51730816/

相关文章:

r - 在 R 中使用带有负值的 ggplot 的堆积条形图

r - 在 R 中设计多元密度图

r - 发生错误时避免关闭 Shiny 浏览器

r - 使用 ggmosaic::product 的 ggplot 自定义函数内的准引用问题

r - 带有 R : Can't change the projection for points/coordinates 的 map

r - 如何在没有仪表板结构的 ShinyApp 中利用 valuebox?

r - 在 R/Shiny 中如何通过单击按钮重新强制选择输入 (selectInput)

r- Shiny - 在哪里可以找到DT软件包的主版本的.tar.gz文件?

r - 从 Shiny 的 DT 行选择中添加 react 性排名列表标签

r - Shiny:合并 DT::datatable 中的单元格