Introduced delete line function. No implementation yet

This commit is contained in:
P-A
2026-02-05 21:50:37 +01:00
parent 93b69aefc9
commit 16393b221f
2 changed files with 16 additions and 5 deletions

View File

@@ -11,10 +11,16 @@ class HomeworkVocabularyTask extends HomeworkElement {
`
this.setAttribute("result", "unknown")
this.setAttribute("state", "edit")
this.deleteButton = this.querySelector('img#delete')
this.deleteButton.addEventListener("click", this.deleteTask.bind(this))
}
connectedCallback() {
console.log("New task added to page")
}
deleteTask() {
console.log("Delete line")
}
}
customElements.define('homework-vocabulary-task', HomeworkVocabularyTask)