Skip to content

Instantly share code, notes, and snippets.

@iammerrick
Created May 18, 2011 20:25
Show Gist options
  • Save iammerrick/979468 to your computer and use it in GitHub Desktop.
Save iammerrick/979468 to your computer and use it in GitHub Desktop.
How SproutCore Template views robs you from a large piece of the framework, desktop controls.
// Script
Pain = SC.Application.create();
SC.ready(function() {
Pain.mainPane = SC.TemplatePane.append({
layerId: 'pain',
templateName: 'pain',
toolbarView: SC.ToolbarView.design({})
});
});
// Template 'pain'
{{view toolbarView}}
// Currently this does not work in SproutCore, but is planned for the future.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment