0.0.1 • Published 7 years ago
@jasonette/windows v0.0.1
Windows
Create multiple flexbox windows that communicate with one another
usage
var windows = require("@jasonette/windows")
windows.build({
type: "horizontal",
components: [
{
type: "textarea",
init: function(el){
el.onkeyup = function(){
windows.trigger("youtube", "view", {val: el.value});
}
}
},
{
type: "iframe",
id: "youtube",
on: {
"view": function(e){
this.src = "https://www.youtube.com/embed/" + e.val;
}
}
}
]
})
0.0.1
7 years ago