datatable(mtcars, options = list(iDisplayLength = 25))
相关帖子:
datatable(mtcars, options = list(dom = 't', pageLength = 3))
将它改为3。datatable(mtcars, options = list(dom = 't',
lengthMenu = list(c(25, 100, -1), c('25', '100', 'All')),
pageLength = 25
))
哦,我的天啊!不停地尝试,直到你找到秘密组合,设置pageLength
不起作用,除非你将scrollY
设置为TRUE
。
options = list(pageLength = 10, scrollY = TRUE)