attachExternalLinkHandlers
FitFileViewer - API Documentation v29.8.0
FitFileViewer - API Documentation / utils/ui/links/externalLinkHandlers / attachExternalLinkHandlers
Function: attachExternalLinkHandlers()
attachExternalLinkHandlers(
params: {root:ParentNode;onOpenExternalError?: (url:string,error:Error) =>void; }): () =>void
Defined in: utils/ui/links/externalLinkHandlers.js:24
Wires click/keyboard activation for links marked with data-external-link within a root.
This is designed to be called for modal roots (not the entire document) to keep event scope predictable and avoid interfering with OAuth flows or internal links.
Parametersβ
paramsβ
rootβ
ParentNode
onOpenExternalError?β
(url: string, error: Error) => void
Returnsβ
cleanup
():
void
Returnsβ
void