Skip to content

Commit

Permalink
Implemented copyToClipboard function.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonliuanu committed Oct 17, 2024
1 parent 870f648 commit 4d2d3c9
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,12 @@ export class InstructorCourseEnrollPageComponent implements OnInit {
/**
* Implement the copy method
*/
copyToClipboard() {
alert("Copy the student information")
copyToClipboard(): void {
const existingStudentsHOTInstance: Handsontable = this.hotRegisterer.getInstance(this.existingStudentsHOT);
const newStudentsHOTInstance: Handsontable = this.hotRegisterer.getInstance(this.newStudentsHOT);

const existingStudentsData = existingStudentsHOTInstance.getData();

newStudentsHOTInstance.loadData(existingStudentsData);
}
}

0 comments on commit 4d2d3c9

Please sign in to comment.