1.2.3 • Published 10 months ago

@corbe30/fortune-excel v1.2.3

Weekly downloads
-
License
MIT
Repository
github
Last release
10 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.2.3

10 months ago

1.2.2

11 months ago

1.2.1

11 months ago

1.2.0

11 months ago

1.0.9

12 months ago

1.0.8

12 months ago

1.0.7

12 months ago

1.0.6

12 months ago

1.0.5

12 months ago

1.0.4

12 months ago

1.0.3

12 months ago