From 5d01197cf893d4a8c9a57f7c963f47393d34e157 Mon Sep 17 00:00:00 2001 From: varac Date: Wed, 13 Jul 2016 20:07:09 +0200 Subject: initial commit, import from pixelated_dashboard --- widgets/iframe/iframe.coffee | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 widgets/iframe/iframe.coffee (limited to 'widgets/iframe/iframe.coffee') diff --git a/widgets/iframe/iframe.coffee b/widgets/iframe/iframe.coffee new file mode 100644 index 0000000..e674e6b --- /dev/null +++ b/widgets/iframe/iframe.coffee @@ -0,0 +1,7 @@ +class Dashing.Iframe extends Dashing.Widget + +ready: -> + $(@node).find(".iframe").attr('src', @get('src')) + +onData: (data) -> + $(@node).find(".iframe").attr('src', data.src) -- cgit v1.2.3