jspreadsheet / jspreadsheet/ce

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

Open
#1,629 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
7.2k
Forks
890
PR merge metrics
No merged PRs in 30d

Description

`

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

`

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue includes the complete embedded JavaScript script for the spreadsheet component; start by reviewing its imports, component data, computed options, methods, and mounted entry point. Done means documenting or providing the corresponding TypeScript form, including how the spreadsheet reference and returned object are typed.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
frontend
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.