From a4a4564f760bb1bcd541366186cd46488d5a569b Mon Sep 17 00:00:00 2001 From: Daniel Beauchamp Date: Tue, 30 Oct 2012 05:16:35 -0400 Subject: Added new widgets, and made them more flexible. Ready for 0.1.3! --- templates/project/widgets/iframe/iframe.coffee | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 templates/project/widgets/iframe/iframe.coffee (limited to 'templates/project/widgets/iframe/iframe.coffee') diff --git a/templates/project/widgets/iframe/iframe.coffee b/templates/project/widgets/iframe/iframe.coffee new file mode 100644 index 0000000..4d4ca9a --- /dev/null +++ b/templates/project/widgets/iframe/iframe.coffee @@ -0,0 +1,9 @@ +class Dashing.Iframe 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 -- cgit v1.2.3 From 5934a2729d93d24e67016dc4dd101c689378ae33 Mon Sep 17 00:00:00 2001 From: Ayrton De Craene Date: Fri, 16 Nov 2012 11:18:06 +0100 Subject: Removes whitespace :scissors: --- templates/project/widgets/iframe/iframe.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/project/widgets/iframe/iframe.coffee') diff --git a/templates/project/widgets/iframe/iframe.coffee b/templates/project/widgets/iframe/iframe.coffee index 4d4ca9a..e3ee947 100644 --- a/templates/project/widgets/iframe/iframe.coffee +++ b/templates/project/widgets/iframe/iframe.coffee @@ -6,4 +6,4 @@ class Dashing.Iframe extends Dashing.Widget 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 + # Example: $(@node).fadeOut().fadeIn() will make the node flash each time data comes in. -- cgit v1.2.3