Ben's Sandbox
  • Projects
  • Tags

Simple Contact List using Model-based Filtering to Search


View Blog   View Source  
This example explores how to leverage Backbone's built-in Collection/Model functionality to collect filter inputs from the user, apply them to a master datasource, and display the results on the screen. The goal is to maintain the seperation of concerns the MVC pattern defines and provide the most flexibility to handle any filtering scenario. The contents of the search box is used to find matches in any of the contact fields (name, org, email, phone). Any matches are highlighted to identify how a row matched the search.

© Ben Olson 2012 with help from Jekyll Bootstrap and Twitter Bootstrap