How to use x-data-spreadsheet - 1 common examples

To help you get started, we’ve selected a few x-data-spreadsheet examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Tencent / omi / packages / omim / src / spreadsheet / index.tsx View on Github external
installed() {
    const ele = this.shadowRoot.querySelector('.m-spreadsheet')
    document.body.appendChild(ele)
    const s = new XSpreadsheet(document.querySelector('.m-spreadsheet'), {
      view: {
        height: () => {
          if (this.props.height) return this.props.height
          return document.documentElement.clientHeight
        },
        width: () => {
          if (this.props.width) return this.props.width
          return document.documentElement.clientWidth
        }
      },

    })
      .loadData(this.props.data || {}) // load data
      .change(data => {
        this.fire('change', data)
      });

x-data-spreadsheet

a javascript xpreadsheet

MIT
Latest version published 4 years ago

Package Health Score

35 / 100
Full package analysis

Popular x-data-spreadsheet functions