Sha256: a6b1d15c00e4a6c5903fdd8612562f97555ae54aee35ecf2571c890662642619

Contents?: true

Size: 346 Bytes

Versions: 6

Compression:

Stored size: 346 Bytes

Contents

namespace "SensuDashboard.Views", (exports) ->

  class exports.ListItem extends SensuDashboard.Views.Base

    tagName: "tr"

    initialize: ->
      @name = @options.name unless @name
      @listenTo(@model, "change",  @render)
      @listenTo(@model, "destroy", @remove)

    render: ->
      @$el.html(@template(@model.toJSON()))
      this

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sensu-dashboard-0.10.4 lib/sensu-dashboard/assets/javascripts/views/list_item.coffee
sensu-dashboard-0.10.3 lib/sensu-dashboard/assets/javascripts/views/list_item.coffee
sensu-dashboard-0.10.2 lib/sensu-dashboard/assets/javascripts/views/list_item.coffee
sensu-dashboard-0.10.1 lib/sensu-dashboard/assets/javascripts/views/list_item.coffee
sensu-dashboard-0.10.0 lib/sensu-dashboard/assets/javascripts/views/list_item.coffee
sensu-dashboard-0.9.9 lib/sensu-dashboard/assets/javascripts/views/list_item.coffee