Skip to content

Instantly share code, notes, and snippets.

@jackaperkins
Created October 4, 2013 02:55
Show Gist options
  • Save jackaperkins/6820295 to your computer and use it in GitHub Desktop.
Save jackaperkins/6820295 to your computer and use it in GitHub Desktop.
<div class="projects explore fontface favorites-disabled recede" id="projects">
<div class="projects">
<ul id="projects-list">
<div class="hex-loader medium"></div>
</ul>
</div>
<div id="pagination" class="pagination"></div> <!-- more will appear here -->
</div>
tabbedView($('#projects-list'), $('#pagination'), { //target for tab content, target for 'more' button
init: 'featured', //default route to render
tabs: {
featured: {
view: projectList, //view to render
data: { //general data to pass to the rendering view
route: '/projects/featured', //api endpoint to hit, this is projectList specific
more: true //optionally add a 'more' button if results set has more items
}
},
trending: {
view: projectList,
data: {
route: '/projects/trending',
more: true
}
},
completed : {
view: projectList,
data: {
route: '/projects/completed',
more: true
}
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment