src/js/widgets/helloWorldWidget.js
author veltr
Mon, 16 Jan 2012 18:49:45 +0100
branchpopcorn-port
changeset 655 b1e2dfc7a740
child 661 48c1beea7b1c
permissions -rw-r--r--
Created a Streamgraph Widget plus a Widget template

IriSP.HelloWorldWidget = function(Popcorn, config, Serializer) {
  IriSP.Widget.call(this, Popcorn, config, Serializer);
}

IriSP.HelloWorldWidget.prototype = new IriSP.Widget();

IriSP.HelloWorldWidget.prototype.draw = function() {
    this.selector
        .html('Hello, world')
        .css({
            "text-align" : "center",
            "padding": "10px 0",
            "font-size" : "14px",
        });
        
    console.log(this);
}