diff options
Diffstat (limited to 'widgets/benchmarks/benchmarks.coffee')
-rw-r--r-- | widgets/benchmarks/benchmarks.coffee | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/widgets/benchmarks/benchmarks.coffee b/widgets/benchmarks/benchmarks.coffee new file mode 100644 index 0000000..1d47b7c --- /dev/null +++ b/widgets/benchmarks/benchmarks.coffee @@ -0,0 +1,15 @@ +class Dashing.Benchmarks 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. + + @accessor 'hasBadOutliers', -> + @get('bad') > 0 + + @accessor 'hasGoodOutliers', -> + @get('good') > 0 |