Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where is documentation and minified files #4

Open
drnkwati opened this issue Jul 5, 2018 · 3 comments
Open

Where is documentation and minified files #4

drnkwati opened this issue Jul 5, 2018 · 3 comments

Comments

@drnkwati
Copy link

drnkwati commented Jul 5, 2018

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

@myliang
Copy link
Owner

myliang commented Jul 6, 2018

@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>

@drnkwati
Copy link
Author

drnkwati commented Jul 6, 2018

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

@myliang
Copy link
Owner

myliang commented Jul 7, 2018

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})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants