| author | hamidouk |
| Wed, 18 Jan 2012 11:34:52 +0100 | |
| branch | popcorn-port |
| changeset 661 | 48c1beea7b1c |
| parent 655 | b1e2dfc7a740 |
| child 766 | aa26ddaf2556 |
| permissions | -rw-r--r-- |
| 661 | 1 |
IriSP.HelloWorldWidget = function(Popcorn, config, Serializer) { |
2 |
IriSP.Widget.call(this, Popcorn, config, Serializer); |
|
3 |
} |
|
4 |
||
5 |
IriSP.HelloWorldWidget.prototype = new IriSP.Widget(); |
|
6 |
||
7 |
IriSP.HelloWorldWidget.prototype.draw = function() { |
|
8 |
this.selector |
|
9 |
.html('Hello, world') |
|
10 |
.css({ |
|
11 |
"text-align" : "center", |
|
12 |
"padding": "10px 0", |
|
13 |
"font-size" : "14px", |
|
14 |
}); |
|
15 |
|
|
16 |
console.log(this); |
|
17 |
} |