Sha256: 816ec16165cc4bf7d4348bea55b1a9ac369a6d55ebdb3d0124e83829efcc4286

Contents?: true

Size: 430 Bytes

Versions: 1

Compression:

Stored size: 430 Bytes

Contents

window.LayoutSelector = Backbone.View.extend
  id: "layout-selector"
  tagName: "ul"

  events:
    "click .opt1": ()->
      $('.editor-container').attr('data-layout','one')

    "click .opt2": ()->
      $('.editor-container').attr('data-layout','two')

    "click .opt3": ()->
      $('.editor-container').attr('data-layout','three')

  render: ()->
    for n in [1,2,3]
      @$el.append "<li class='opt#{n}'>#{n}</li>"

    @

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
code_sync-0.6.7 lib/assets/javascripts/demos/layout_selector.coffee