Add dashboard
This commit is contained in:
9
widgets/image/image.coffee
Normal file
9
widgets/image/image.coffee
Normal file
@@ -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.
|
||||
1
widgets/image/image.html
Normal file
1
widgets/image/image.html
Normal file
@@ -0,0 +1 @@
|
||||
<img data-bind-src="image | prepend '/assets'" data-bind-width="width"/>
|
||||
13
widgets/image/image.scss
Normal file
13
widgets/image/image.scss
Normal file
@@ -0,0 +1,13 @@
|
||||
// ----------------------------------------------------------------------------
|
||||
// Sass declarations
|
||||
// ----------------------------------------------------------------------------
|
||||
$background-color: #4b4b4b;
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// Widget-image styles
|
||||
// ----------------------------------------------------------------------------
|
||||
.widget-image {
|
||||
|
||||
background-color: $background-color;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user