Skip to content

Instantly share code, notes, and snippets.

@seanmonstar
Created October 15, 2009 21:52
Show Gist options
  • Save seanmonstar/211319 to your computer and use it in GitHub Desktop.
Save seanmonstar/211319 to your computer and use it in GitHub Desktop.
var recipeList = new ListView({
title: 'Recipes',
dataProvider: recipes,
display: '{name} - {difficulty}',
onItemSelect: function(item) {
}
});
panel.grab(recipeList);
<h2>Recipes</h2>
<ul id="RecipesList">
<% recipes.forEach(function(r) { %>
<li><%= r.name %> - <%= r.difficuly %></li>
<% }); %>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment