src/js/widgets/helloWorldWidget.js
author hamidouk
Fri, 03 Feb 2012 17:07:42 +0100
branchpopcorn-port
changeset 778 8329f476d852
parent 766 aa26ddaf2556
child 868 a525cc2214e7
permissions -rw-r--r--
clicking on the annotate button when the annotation creation widget is opened starts the creation of a new annotation.

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