Skip to content

Instantly share code, notes, and snippets.

@skurfuerst
Created July 8, 2011 13:15
Show Gist options
  • Save skurfuerst/1071799 to your computer and use it in GitHub Desktop.
Save skurfuerst/1071799 to your computer and use it in GitHub Desktop.
var propertyPanelView = SC.View.create({ //
template: SC.Handlebars.compile('A{{#each schema}}\
XX{{key}}{{label}} {{thestuff}}\
x{{#each thestuff}} ASDF {{/each}}y\
{{/each}}'),
schema: [
{
key: 'Plugin Settings',
label: 'huhu',
thestuff: [
{
key: 'package',
type: 'string',
label: 'Package'
}, {
key: 'controller',
type: 'string',
label: 'Controller'
}
]
},
{
key: 'Access',
thestuff: [
{
key: 'visibility',
type: 'boolean',
label: 'Visibility'
}
]
},
]
});
propertyPanelView.appendTo($('.rightarea'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment