IFrame plugin for dashing
Dashing widget to display an iframe with specified src
Create the folder iframe
in the /widgets/
directory. Put the files iframe.coffee
, iframe.html
and iframe.scss
in that folder.
This can also be done by using the gist: https://gist.github.com/hussfelt/a6fe71ebd7cce327df29
dashing install a6fe71ebd7cce327df29
Put the following in your dashboard.erb file to show the iframe:
<li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
<div data-id="iframeId1" data-view="Iframe"></div>
</li>
curl -d '{
"auth_token": "YOUR_AUTH_TOKEN",
"src": "http://example.com/"
}' http://0.0.0.0:3030/widgets/iframeId1
<li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
<div data-id="iframeId1" data-view="Iframe" data-src="http://example.com/"></div>
</li>
Distributed under the MIT license
Thanks @rcaudill!
Did you do this:
Let me know and I'll adjust!