1.0.3 • Published 8 months ago

@evidential-fortune-sheet/fortune-excel v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

Usage

For best results, import and export a single sheet at a time. Although you can force FortuneExcel to handle multiple sheets, certain configurations may break.

  1. Install the package:
npm i @corbe30/fortune-excel
  1. Add import/export toolbar item in fortune-sheet

    <ImportHelper /> is a hidden component and only required when using importToolBarItem().

import { ImportHelper, importToolBarItem, exportToolBarItem } from "@corbe30/fortune-excel";

function App() {
  const workbookRef = useRef();
  const [key, setKey] = useState(0);
  const [sheets, setSheets] = useState(data);

  return (
    <>
      <ImportHelper setKey={setKey} setSheets={setSheets} sheetRef={workbookRef} />
      <Workbook
        key={key} data={sheets} ref={workbookRef}
        customToolbarItems={[exportToolBarItem(workbookRef), importToolBarItem()]}
      />
    </>
  );
}

Authors and acknowledgment

Developers of FortuneSheetExcel:

License

MIT

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago