Skip to content

Instantly share code, notes, and snippets.

@ccapndave
Created November 16, 2011 21:39
Show Gist options
  • Save ccapndave/1371512 to your computer and use it in GitHub Desktop.
Save ccapndave/1371512 to your computer and use it in GitHub Desktop.
Mymag.SourceItemView = SC.Checkbox.extend({
titleBinding: ".parentView.content.label"
});
Mymag.sourceListController = SC.ArrayController.create({
content: [
{ label: "BBC News", url: "http://www.bbc.co.uk/news/" },
{ label: "Snow forecast", url: "http://www.snow-forecast.com/resorts/Leysin/6day/mid" },
{ label: "XE", url: "http://www.xe.com/" }
]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment