diff --git a/docz/docs/03-demos/01-frontend/01-react.md b/docz/docs/03-demos/01-frontend/01-react.md index 8025419..bfeaff3 100644 --- a/docz/docs/03-demos/01-frontend/01-react.md +++ b/docz/docs/03-demos/01-frontend/01-react.md @@ -161,7 +161,11 @@ However, this does not handle merge cells well! The `sheet_to_html` function generates HTML that is aware of merges and other worksheet features. React `dangerouslySetInnerHTML` attribute allows code to -set the `innerHTML` attribute, effectively inserting the code into the page: +set the `innerHTML` attribute, effectively inserting the code into the page. + +In this example, the component attaches a `ref` to the `DIV` container. During +export, the first `TABLE` child element can be parsed with `table_to_book` to +generate a workbook object. ```jsx title="src/SheetJSReactHTML.js" import React, { useCallback, useEffect, useRef, useState } from "react"; diff --git a/docz/docs/03-demos/02-grid/11-rdg.md b/docz/docs/03-demos/02-grid/16-rdg.md similarity index 100% rename from docz/docs/03-demos/02-grid/11-rdg.md rename to docz/docs/03-demos/02-grid/16-rdg.md diff --git a/docz/docs/03-demos/02-grid/18-mui.md b/docz/docs/03-demos/02-grid/18-mui.md new file mode 100644 index 0000000..37e159f --- /dev/null +++ b/docz/docs/03-demos/02-grid/18-mui.md @@ -0,0 +1,229 @@ +--- +title: Material UI +pagination_prev: demos/frontend/index +pagination_next: demos/net/index +--- + +import current from '/version.js'; +import CodeBlock from '@theme/CodeBlock'; + +This demo covers the traditional Material UI Table as well as the MUI Data Grid. + +## Material UI Table + +The `Table` component abstracts the `
Click one of the buttons to create a new file with the modified data