summaryrefslogtreecommitdiff
path: root/templates/project/widgets/image/image.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'templates/project/widgets/image/image.coffee')
-rw-r--r--templates/project/widgets/image/image.coffee9
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/project/widgets/image/image.coffee b/templates/project/widgets/image/image.coffee
new file mode 100644
index 0000000..418e385
--- /dev/null
+++ b/templates/project/widgets/image/image.coffee
@@ -0,0 +1,9 @@
+class Dashing.Image extends Dashing.Widget
+
+ ready: ->
+ # This is fired when the widget is done being rendered
+
+ onData: (data) ->
+ # Handle incoming data
+ # You can access the html node of this widget with `@node`
+ # Example: $(@node).fadeOut().fadeIn() will make the node flash each time data comes in. \ No newline at end of file