0.0.1 • Published 7 years ago

@jasonette/windows v0.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
7 years ago

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;
        }
      }
    }
  ]
})