Currently, create_dt() by default shows only 10 rows of data, specified in this chunk of code:
# Code snippet within DT::datatable() call
lengthMenu = list(c(10, 25, 50, -1), c(10, 25, 50, "All"))
It would be helpful to have an argument along the lines of show_rows, which defaults to 10 to avoid any breaking changes. When set to say 25 or All, the list for lengthMenu gets replaced by:
# Code snippet within DT::datatable() call
lengthMenu = list(c(25, 10, 50, -1), c(25, 10, 50, "All"))
and
# Code snippet within DT::datatable() call
lengthMenu = list(c(-1, 25, 10, 50), c("All", 25, 10, 50))
... respectively.
Currently,
create_dt()by default shows only 10 rows of data, specified in this chunk of code:It would be helpful to have an argument along the lines of
show_rows, which defaults to 10 to avoid any breaking changes. When set to say 25 or All, the list forlengthMenugets replaced by:and
... respectively.