删除“显示1至N个N项”。闪亮的DT [英] Remove "Showing 1 to N of N Entries" Shiny DT
问题描述
我想删除闪亮的DT中n项中显示的1至n项。请查看下面关于我要删除的内容的图片。
I'm looking to remove the showing 1 to n of n entries field in shiny DT. Please see picture below of what I would like to REMOVE.
任何见解都会受到赞赏。
Any insight is much appreciated.
推荐答案
您可以使用 dom
选项来确定显示数据表。在对数据的调用表中,将一个命名的选项列表传递给 options
参数。 dom
接受一个字符串,其中每个元素对应一个DOM元素。
You can use the dom
option to determine which elements of the data table are shown. In the call to data table, you pass a named list of options to the options
argument. dom
accepts a character string where each element corresponds to one DOM element.
# 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
是表信息摘要:这就是您想要的离开。您还可以使用此方法删除搜索框或分页控件之类的其他元素。
In your case, i
is the table information summary: that's the one you want to leave out. You can also use this method to remove other elements like the search box or pagination controls.
有关如何在R中执行此操作,请参见此页上的第4.2节: https://rstudio.github.io/DT/options.html
See section 4.2 on this page for how to do this in R: https://rstudio.github.io/DT/options.html
Datatables手册中的此页面讨论DOM选项: https:// datatables。净/参考/选项/ dom
This page in the Datatables manual discusses the DOM option: https://datatables.net/reference/option/dom
这篇关于删除“显示1至N个N项”。闪亮的DT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!