Skip to contents

muiDataGrid gives access to MUI X Data Grid, a fast and extensible React data table and React data grid, with filtering, sorting, aggregation, and more.

Install

install.packages("muiDataGrid")

You can install the development version of muiDataGrid like so:

remotes::install_github("lgnbhl/muiDataGrid")

Basic examples

A minimal example:

library(muiDataGrid)

DataGrid(
  rows = head(iris)
)

Customization can be done very easily:

library(muiDataGrid)
library(dplyr)

DataGrid(
  rows = starwars,
  columns = list(
    list(field = "name", headerName = "Names", description = "Names of Starwars character"),
    list(field = "height", headerName = "Height (cm)", description = "Height in centimeter"),
    list(field = "mass", headerName = "Mass (kg)", description = "Mass in kilogram")
  ),
  initialState = list(
    pagination = list(
      paginationModel = list(pageSize = 5)
    )
  ),
  showToolbar = TRUE
)

Read the full documentation with examples here.

Contribute

If you have any issue, question or want to contribute with a pull request, don’t hesitate to write me on https://felixluginbuhl.com/muiDataGrid/

For updates follow Felix Luginbuhl on LinkedIn.