enabling and disabling downloadPrrByVaccineTableButton
This commit is contained in:
@@ -1,5 +1,21 @@
|
||||
class UIUtils {
|
||||
|
||||
static show(element) {
|
||||
element.style.display = "block";
|
||||
}
|
||||
|
||||
static hide(element) {
|
||||
element.style.display = "none";
|
||||
}
|
||||
|
||||
static disableButton(button) {
|
||||
button.disabled = true;
|
||||
}
|
||||
|
||||
static enableButton(button) {
|
||||
button.disabled = false;
|
||||
}
|
||||
|
||||
static instantiateTemplate(templateId) {
|
||||
return document.getElementById(templateId).content.firstElementChild.cloneNode(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user