Hinzufügen der Möglichkeit, Aktionsschaltflächen auszublenden, wenn das Unterschriftenfeld geöffnet wird
This commit is contained in:
parent
a1d251d705
commit
7961fcbf0f
@ -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
|
||||
|
||||
@ -46,4 +46,8 @@ class Comp{
|
||||
return Comp.__fActPanel
|
||||
}
|
||||
}
|
||||
|
||||
static get ActPanelElements() {
|
||||
return [...Comp.ActPanel.children]
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user