ziko
Version:
a versatile javaScript framework offering a rich set of UI components, advanced mathematical utilities, reactivity, animations, client side routing and graphics capabilities
17 lines • 461 B
JavaScript
import ZikoUIElement from "../ZikoUIElement.js";
class ZikoUIPdf extends ZikoUIElement{
constructor(src, title = "Pdf Document Embaded in Zikojs App"){
super("embed","PDFViewer")
this.setAttr({
src:src,
type: "application/pdf",
ariaLabel: title,
tabIndex: "0",
})
}
}
const PDFViewer=(src, title)=>new ZikoUIPdf(src, title);
export{
ZikoUIPdf,
PDFViewer
}