xspreadsheet icon indicating copy to clipboard operation
xspreadsheet copied to clipboard

Where is documentation and minified files

Open drnkwati opened this issue 6 years ago • 3 comments

I was wondering were the minified js files are What about documentation and usage examples?

drnkwati avatar Jul 05 '18 15:07 drnkwati

@drnkwati

<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" type="text/css" href="spreadsheet.css"></link>
    <script type="text/javascript" src="bundle.js"></script>
    <script type="text/javascript">
      window.onload = function () {
        xspreadsheet(document.getElementById('wrapper'))
      }
    </script> 
    <title>TypeScript with VSCode</title>
  </head>
  <body>
      <div id="wrapper"></div>
    
  </body>
</html>

myliang avatar Jul 06 '18 01:07 myliang

Then how do i get the data programmatically? I need to know the API, and how to export the data Without proper documentation or examples this library will be useless

drnkwati avatar Jul 06 '18 08:07 drnkwati

const x = xspreadsheet(document.getElementById('#id'))
x.change = (data) => {
  console.log('data:', data)
}

// edit
// data is param in the change method
xspreadsheet(document.getElementById('#id'), {d: data})

myliang avatar Jul 07 '18 04:07 myliang