add template submissions filters

This commit is contained in:
Alex Turchyn
2024-11-20 22:49:06 +02:00
committed by Pete Matsyburka
parent c2eb94b571
commit b86aac86d1
13 changed files with 484 additions and 51 deletions
@@ -0,0 +1,17 @@
export default class extends HTMLElement {
connectedCallback () {
this.dateFrom = this.dataset.fromValue
this.dateTo = this.dataset.toValue
this.dateFromInput = document.getElementById(this.dataset.fromId)
this.dateToInput = document.getElementById(this.dataset.toId)
this.button.addEventListener('click', () => {
this.dateFromInput.value = this.dateFrom || ''
this.dateToInput.value = this.dateTo || ''
})
}
get button () {
return this.querySelector('button')
}
}