Sha256: ca4bc2d05ed9ddedd9b79084eb8a93afe2709ee14c4d13df98e12e6df58c3fd6

Contents?: true

Size: 387 Bytes

Versions: 54

Compression:

Stored size: 387 Bytes

Contents

class Dashing.Meter extends Dashing.Widget

  @accessor 'value', Dashing.AnimatedValue

  constructor: ->
    super
    @observe 'value', (value) ->
      $(@node).find(".meter").val(value).trigger('change')

  ready: ->
    meter = $(@node).find(".meter")
    meter.attr("data-bgcolor", meter.css("background-color"))
    meter.attr("data-fgcolor", meter.css("color"))
    meter.knob()

Version data entries

54 entries across 54 versions & 7 rubygems

Version Path
smashing-1.3.6 templates/project/widgets/meter/meter.coffee
smashing-1.3.5 templates/project/widgets/meter/meter.coffee
smashing-1.3.4 templates/project/widgets/meter/meter.coffee
smashing-1.3.3 templates/project/widgets/meter/meter.coffee
smashing-1.3.2 templates/project/widgets/meter/meter.coffee
smashing-1.3.1 templates/project/widgets/meter/meter.coffee
smashing-1.3.0 templates/project/widgets/meter/meter.coffee
smashing-1.2.0 templates/project/widgets/meter/meter.coffee
smashing-1.1.0 templates/project/widgets/meter/meter.coffee
dashing-rails-2.6.2 vendor/assets/javascripts/dashing/default_widgets/meter.coffee
dashing-rails-2.6.1 vendor/assets/javascripts/dashing/default_widgets/meter.coffee
dashing-rails-2.6.0 vendor/assets/javascripts/dashing/default_widgets/meter.coffee
smashing-1.0.0 templates/project/widgets/meter/meter.coffee
dashing-1.3.7 templates/project/widgets/meter/meter.coffee
dashing-1.3.6 templates/project/widgets/meter/meter.coffee
dashing-rails-2.5.0 vendor/assets/javascripts/dashing/default_widgets/meter.coffee
dashing-rails-2.4.5 vendor/assets/javascripts/dashing/default_widgets/meter.coffee
dashing-rails-2.4.4 vendor/assets/javascripts/dashing/default_widgets/meter.coffee
baseboard-1.0.2 templates/project/widgets/meter/meter.coffee
baseboard-1.0.1 templates/project/widgets/meter/meter.coffee