src/js/widgets/helloWorldWidget.js
author veltr
Thu, 19 Jan 2012 15:13:59 +0100
branchpopcorn-port
changeset 726 2c0bd0671707
parent 661 48c1beea7b1c
child 766 aa26ddaf2556
permissions -rw-r--r--
Merge with 00f37b85b2e245676e96d9148315c4a3de6d7539

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