Hinzufügen der Möglichkeit, Aktionsschaltflächen auszublenden, wenn das Unterschriftenfeld geöffnet wird

This commit is contained in:
Developer 02 2024-06-12 15:34:54 +02:00
parent a1d251d705
commit 7961fcbf0f
2 changed files with 9 additions and 0 deletions

View File

@ -65,6 +65,11 @@ class App {
this.handleAnnotationsCreate.bind(this)
)
this.Instance.addEventListener("annotations.willChange", _ => {
//hide buttons
Comp.ActPanelElements.forEach(child => child.style.display = 'none');
});
// Load annotations into PSPDFKit
try {
this.signatureCount = this.currentDocument.elements.length

View File

@ -46,4 +46,8 @@ class Comp{
return Comp.__fActPanel
}
}
static get ActPanelElements() {
return [...Comp.ActPanel.children]
}
}