0.0
No commit activity in last 3 years
No release in over 3 years
Dashing widget that changes the widget's color depending on the value displayed
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
 Project Readme

Dashing::Hotness

Dashing-Rails widget that changes the widget's color depending on the value displayed.

Installation

Add this line to your Dashing-Rails application's Gemfile:

gem 'dashing-hotness'

And then execute:

$ bundle

Getting Started

Follow the following steps in order to make it work on your dashing-rails project:

  1. Add the following line to your app/assets/javascripts/dashing/widgets/index.js file:

     //= require hotness
    
  2. Add the following line to your app/assets/stylesheets/dashing/widgets/index.css file:

     *= require hotness
    
  3. Add the following html to your dashboard:

     <li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
         <div data-id="your_id" data-view="Hotness" data-title="Hotness Widget Title" data-cool="0" data-warm="100"></div>
     </li>
    

Note: the paths to index files may have changed depending on your Dashing-Rails configuration.

Fields

Required

  • data-id: Like all widgets, you must include an identifier so that your jobs can update the value.
  • data-cool: Anything below this value will show the 'cold' colour. It should be set high enough to include all the 'good' range of value for this metric.
  • data-warm: Anything above this value will show the 'hot' colour. It should be set just below the 'bad' range of value for this metric - ie. those that need attention!
Not Required
  • data-title: Optional title to show in the widget box (above the value).
  • data-prefix: Optional prefix to the value.
  • data-suffix: Optional suffix to the value.

Colors

The default colour scheme is Sweet Lolly by nekyo.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Author

Full credits for this widget should go to Rowan. Please read his blog post for more informations about the widget.

License

The colour schemes and this widget are licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 license Developed by Rowan. Adapted by gottfrois.

Bitdeli Badge