summaryrefslogtreecommitdiff
path: root/widgets/benchmarks/benchmarks.coffee
blob: 2e1a6ba8899481f75390a59106eb8d34ea86e8b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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

  @accessor 'isBenchmarked', ->
    !/NOT/.test(@get('is-benchmarked-status'))

  @accessor 'isNotBenchmarked', ->
    /NOT/.test(@get('is-benchmarked-status'))