src/js/widgets/helloWorldWidget.js
author veltr
Mon, 05 Mar 2012 17:34:48 +0100
branchpopcorn-port
changeset 827 1dc2f85c3b89
parent 766 aa26ddaf2556
child 868 a525cc2214e7
permissions -rw-r--r--
BUGFIX: Tooltips are now positioned relative to their parent widget.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
661
48c1beea7b1c change line endings to unix.
hamidouk
parents: 655
diff changeset
     1
IriSP.HelloWorldWidget = function(Popcorn, config, Serializer) {
48c1beea7b1c change line endings to unix.
hamidouk
parents: 655
diff changeset
     2
  IriSP.Widget.call(this, Popcorn, config, Serializer);
48c1beea7b1c change line endings to unix.
hamidouk
parents: 655
diff changeset
     3
}
48c1beea7b1c change line endings to unix.
hamidouk
parents: 655
diff changeset
     4
48c1beea7b1c change line endings to unix.
hamidouk
parents: 655
diff changeset
     5
IriSP.HelloWorldWidget.prototype = new IriSP.Widget();
48c1beea7b1c change line endings to unix.
hamidouk
parents: 655
diff changeset
     6
48c1beea7b1c change line endings to unix.
hamidouk
parents: 655
diff changeset
     7
IriSP.HelloWorldWidget.prototype.draw = function() {
48c1beea7b1c change line endings to unix.
hamidouk
parents: 655
diff changeset
     8
    this.selector
48c1beea7b1c change line endings to unix.
hamidouk
parents: 655
diff changeset
     9
        .html('Hello, world')
48c1beea7b1c change line endings to unix.
hamidouk
parents: 655
diff changeset
    10
        .css({
48c1beea7b1c change line endings to unix.
hamidouk
parents: 655
diff changeset
    11
            "text-align" : "center",
48c1beea7b1c change line endings to unix.
hamidouk
parents: 655
diff changeset
    12
            "padding": "10px 0",
766
aa26ddaf2556 fixed raphael's files to remove trailing colon at the end of objects to make
hamidouk
parents: 661
diff changeset
    13
            "font-size" : "14px"
661
48c1beea7b1c change line endings to unix.
hamidouk
parents: 655
diff changeset
    14
        });
48c1beea7b1c change line endings to unix.
hamidouk
parents: 655
diff changeset
    15
        
48c1beea7b1c change line endings to unix.
hamidouk
parents: 655
diff changeset
    16
    console.log(this);
48c1beea7b1c change line endings to unix.
hamidouk
parents: 655
diff changeset
    17
}