src/js/widgets/helloWorldWidget.js
branchnew-model
changeset 868 a525cc2214e7
parent 766 aa26ddaf2556
child 870 2c025db10a10
equal deleted inserted replaced
866:3bf7aa8216e5 868:a525cc2214e7
     4 
     4 
     5 IriSP.HelloWorldWidget.prototype = new IriSP.Widget();
     5 IriSP.HelloWorldWidget.prototype = new IriSP.Widget();
     6 
     6 
     7 IriSP.HelloWorldWidget.prototype.draw = function() {
     7 IriSP.HelloWorldWidget.prototype.draw = function() {
     8     this.selector
     8     this.selector
     9         .html('Hello, world')
     9         .append('Hello, world')
    10         .css({
    10         .css({
    11             "text-align" : "center",
    11             "text-align" : "center",
    12             "padding": "10px 0",
    12             "padding": "10px 0",
    13             "font-size" : "14px"
    13             "font-size" : "14px"
    14         });
    14         });
    15         
       
    16     console.log(this);
       
    17 }
    15 }