diff --git a/docz/docs/03-demos/04-grid/18-mui.md b/docz/docs/03-demos/04-grid/18-mui.md index 7f55194..3970dd8 100644 --- a/docz/docs/03-demos/04-grid/18-mui.md +++ b/docz/docs/03-demos/04-grid/18-mui.md @@ -5,44 +5,174 @@ pagination_next: demos/net/index --- import current from '/version.js'; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; import CodeBlock from '@theme/CodeBlock'; -This demo covers the traditional Material UI Table as well as the MUI Data Grid. +Material UI is a collection of ReactJS Components that follows the +[Google Material Design system](https://material.io/) + +[SheetJS](https://sheetjs.com) is a JavaScript library for reading and writing +data from spreadsheets. + +This demo uses Material UI and SheetJS to pull data from a spreadsheet and +display the data. We'll explore how to import data from spreadsheets and export +data to spreadsheets. The following Material UI components will be tested: + +- ["Table"](#material-ui-table) is based on the core HTML TABLE element. + +- ["Data Grid"](#material-ui-data-grid) is a data grid for larger datasets. + +:::note pass + +The [ReactJS demo](/docs/demos/frontend/react) covers basic ReactJS concepts. +It should be perused before reading this demo. + +::: ## Integration Details [The "Frameworks" section](/docs/getting-started/installation/frameworks) covers installation in projects using Material UI. +After installing the SheetJS module in a ReactJS project, `import` statements +can load relevant parts of the library. + +```js +import { read, utils, writeFileXLSX } from 'xlsx'; +``` + ## Material UI Table -The `Table` component abstracts the `
Spreadsheet | State |
---|---|
+ +![`pres.xlsx` data](pathname:///pres.png) + + | + +```js +[ + { Name: "Bill Clinton", Index: 42 }, + { Name: "GeorgeW Bush", Index: 43 }, + { Name: "Barack Obama", Index: 44 }, + { Name: "Donald Trump", Index: 45 }, + { Name: "Joseph Biden", Index: 46 } +] +``` + + |
Name | Index |
---|---|
{row.Name} | +{row.Index} | +