Last active
October 22, 2015 07:50
-
-
Save luisarroyo/39a03a580cdefc67d985 to your computer and use it in GitHub Desktop.
meteor-typhead multiple datasets example
This file contains hidden or 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
| Template.demo.teams = function(){ | |
| return [ | |
| { | |
| name: 'nba-teams', | |
| valueKey: 'name', | |
| displayKey: 'name', | |
| local: function() { return Nba.find().fetch() }, | |
| header: '<h3 class="league-name">NBA Teams</h3>' | |
| }, | |
| { | |
| name: 'nhl-teams', | |
| valueKey: 'name', | |
| displayKey: 'name', | |
| local: function() { return Nhl.find().fetch() }, | |
| header: '<h3 class="league-name">NHL Teams</h3>' | |
| } | |
| ]; | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks!