Skip to content

Feature request: create_dt() parameter to show default number of rows to show #245

@martinctc

Description

@martinctc

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request
No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions