'MUI X Data Grid' for 'shiny' Apps and 'Quarto'

Provides access to 'MUI X Data Grid', a fast and extensible React data table and React data grid, with filtering, sorting, pagination, and more. Bundles the MIT-licensed community edition of the '@mui/x-data-grid' JavaScript library (the commercial 'Pro' and 'Premium' tiers are not included).


muiDataGrid

CRANstatus R-CMD-check LinkedIn

muiDataGrid gives access to MUI X Data Grid, a fast and extensible React data table and React data grid, with filtering, sorting, pagination, 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.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("muiDataGrid")

0.1.2 by Felix Luginbuhl, 4 months ago


https://felixluginbuhl.com/muiDataGrid/


Report a bug at https://github.com/lgnbhl/muiDataGrid/issues


Browse source code at https://github.com/cran/muiDataGrid


Authors: Felix Luginbuhl [aut, cre, cph] (ORCID: , MUI [cph] (Copyright holder of the bundled '@mui/x-data-grid' , '@mui/x-virtualizer' , '@mui/x-internals' , '@mui/private-theming' and '@mui/styled-engine' JavaScript libraries) , Meta Platforms , Inc. and affiliates [cph] (Copyright holder of the bundled 'react-is' JavaScript library; 'react' and 'react-dom' are declared as peer dependencies and provided at runtime by 'shiny.react')


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports htmltools, shiny, shiny.react, muiMaterial, utils

Suggests knitr, rmarkdown, dplyr, testthat


See at CRAN