Created
October 4, 2013 02:55
-
-
Save jackaperkins/6820295 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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