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

I would like to know how to write this script part in typescript. #1629

Open
b-naoki opened this issue Jun 28, 2023 · 0 comments
Open

I would like to know how to write this script part in typescript. #1629

b-naoki opened this issue Jun 28, 2023 · 0 comments

Comments

@b-naoki
Copy link

b-naoki commented Jun 28, 2023

`



<script> import "jsuites/dist/jsuites.js" import "jsuites/dist/jsuites.css" import "jspreadsheet-ce/dist/jspreadsheet.css" import jSpreadSheet from "jspreadsheet-ce" export default { name: "sheet-test", data() { return { VRHeadSets: [[], [], [],], }; }, computed: { jSpreadSheetOptins() { return { data: this.VRHeadSets, columns: [ { title: "Maker", width: "150px", }, { type: "calendar", title: "Release date", width: "250px" }, ], }; }, }, methods: { getData: function () { alert(JSON.stringify(this.jspreadsheetObj.getData())); }, }, mounted: function () { const jspreadsheetObj = jSpreadSheet( this.$refs["refspreadsheet"], this.jSpreadSheetOptins ); Object.assign(this, { jspreadsheetObj }); }, }; </script>

`

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

1 participant