ziko
Version:
a versatile javaScript framework offering a rich set of UI components, advanced mathematical utilities, reactivity, animations, client side routing and graphics capabilities
20 lines (18 loc) • 515 B
JavaScript
import ZikoUIElement from "../ZikoUIElement.js";
class ZikoUIHtmlViewer extends ZikoUIElement{
constructor(src, title){
super("iframe", "HTMLViewer")
this.setAttr({
src,
title,
// ariaLabel : "Interactive YouTube video player for zikojs apps",
role:"application",
loading:"lazy"
})
}
}
const HTMLViewer = (src, title) => new ZikoUIHtmlViewer(src, title);
export{
HTMLViewer,
ZikoUIHtmlViewer
}