Add dashboard
This commit is contained in:
9
widgets/iframe/iframe.coffee
Normal file
9
widgets/iframe/iframe.coffee
Normal file
@@ -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.
|
||||
1
widgets/iframe/iframe.html
Normal file
1
widgets/iframe/iframe.html
Normal file
@@ -0,0 +1 @@
|
||||
<iframe data-bind-src="url" frameborder=0></iframe>
|
||||
8
widgets/iframe/iframe.scss
Normal file
8
widgets/iframe/iframe.scss
Normal file
@@ -0,0 +1,8 @@
|
||||
.widget-iframe {
|
||||
padding: 3px 0px 0px 0px !important;
|
||||
|
||||
iframe {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user