Skip to content

Instantly share code, notes, and snippets.

@JamesMaroney
Created April 29, 2011 13:04
Show Gist options
  • Save JamesMaroney/948262 to your computer and use it in GitHub Desktop.
Save JamesMaroney/948262 to your computer and use it in GitHub Desktop.
overriding render of TemplateView
PolicyManagement.UpsertPolicyView = SC.View.design({
childViews: [ "header", "body" ],
header: SC.TemplateView.extend({
templateName: "upsert_policy_header",
render: function(){
return "<h1>blah</h1>";
}
}),
body: SC.ContainerView.design({
contentView: PolicyManagement.PolicyPropertiesView
})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment