src/js/widgets/helloWorldWidget.js
author veltr
Thu, 01 Mar 2012 17:28:36 +0100
branchpopcorn-port
changeset 821 49013af6d50b
parent 766 aa26ddaf2556
child 868 a525cc2214e7
permissions -rw-r--r--
IE 8 compatibility (using Underscore for Map and Reduce operations)

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