Rownames = FALSE # don't show row numbers/namesĪnother nice table-making package is formattable. Selection = 'single', # enable selection of a single rowįilter = 'bottom', # include column filters at the bottom List(targets = c(0, 8, 9), visible = FALSE)) Server = FALSE, # use client-side processingĬolumnDefs = list(list(targets = '_all', className = 'dt-center'), ScrollY = TRUE, # enable scrolling on Y axisĪutoWidth = TRUE, # use smart column width handling ScrollX = TRUE, # enable scrolling on X axis ![]() PageLength = 15, # number of rows to output for each page Options = list(paging = TRUE, # paginate the output Here are some options that I find useful: datatable(villagers, More details about how these are implemented in DT is here and a full list of the options available in DataTables can be found in the DataTables documentation. These are passed to DataTables and interpreted as JS code. Note that while some customisation options belong as arguments to datatable, many others are ‘initialisation options’ that are passed to the options argument as named elements of a list.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |