File: element.coffee

Defined in: template

Method Summary

Method Details

? Gunther.Template.prototype.element(tagName, args...) Source

Add a child element

Parameters:

  • tagNameString with the name of the element (i.e. "a", "div", etc)

? Gunther.Template.prototype.boundElement(args...) Source

Set up an element which is bound to a model's property

Parameters:

  • elementstring to pass to {Gunther.Template::element}
  • modelmodel to bind on
  • (String) propertiessingle or list of properties to listen to (given as String)

? Gunther.Template.prototype.append(element) Source

Append an element

Parameters:

  • elementelement to append, can be a {Backbone.View} or anything that can be appended directly to the DOM