0.1.1 • Published 2 years ago

luckysheet-react v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Usage

  import Luckysheet, { sheetAPI } from 'luckysheet-react'; 

  const luckyCss = {
    margin: '0px',
    padding: '0px',
    position: 'absolute',
    width: '100%',
    height: '100%',
    left: '0px',
    top: '100px'
  };

  const Index = () => (
    <Luckysheet
      style={luckyCss}
      lang="zh"
      column={0}
      hook = {{
        cellEditBefore(e: any) {
          console.log('e', e);
        },
        cellUpdateBefore(e: any) {
          console.log('e', e);
        }
      }}
      columnConfig={columnConfig}
      customCell={() => null}
      insertColumn={insertColumn}
    />
  )

  export default Index;