A Dashing widget which shows an image.
To use, in your dashboard.erb file:
<li data-row="1" data-col="1" data-sizex="3" data-sizey="2">
<div data-id="picture" data-view="BigImage" data-image="http://i.imgur.com/JycUgrg.jpg"
style="background-color:transparent;"
data-max="true"
></div>
</li>
You can update the image via a background job or API key. Whenever the image laods, the image will be resized to fit the dimensions of the widget. If data-max="false"
, then the image will never be enlarged.
This also supports imgur .mp4 and .gifv files.
You could, but the file would have to be present on whatever machine is viewing the dashboard, so I wouldn't recommend it. You can always use something like imgur to host the image, especially if it's not going to be viewed by thousands of people or anything. (I'm a little surprised to see someone is still using Dashing! Shopify hasn't exactly been maintaining it. You might want to look into something a bit more modern like Grafana?)