0.4.0 • Published 11 years ago

backbone.viewx v0.4.0

Weekly downloads
2
License
-
Repository
github
Last release
11 years ago

Backbone.View flavoured with sub view management routines and DOM insertion methods.

View = require 'backbone.viewx'

class MyView extends View

  render: ->
    this.header = @view(new Header)
      .render()
      .prependTo(this.el)
    this.content = @view(new Content)
      .render()
      .appendTo(this.el)
    # appendTo, prependTo, appendAfter, appendBefore
    # and inverse methods
    # append, prepend, after, before
    # are also available

  onEnterDOM: ->
    # this method will be called when view's element is attached to the DOM,
    # useful for triggering relayout and animations
0.4.0

11 years ago

0.3.2

11 years ago

0.3.1

11 years ago

0.3.0

11 years ago

0.2.1

11 years ago

0.2.0

11 years ago

0.1.0

11 years ago