-
Notifications
You must be signed in to change notification settings - Fork 80
Open
Description
Hi, thank you for awesome package.
How could I use parameter in the data-source helper function. Some thing like this:
<input class="form-control typeahead" name="team" type="text"
placeholder="NBA teams"
autocomplete="off" spellcheck="off"
data-source="(customerCodes code)"
data-select="selected"
data-render="rendered"/>
and the helper:
Template.myTemplate.helpers({
customerCodes: function(code) {
return Customers.find({code: code}).fetch().map(function(it){ return {id: it._id, value: it.code}; });
}
})
Thank you.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels