Closed Mattze96 closed 8 years ago
html:
<select class="form-control multiselect" size="4" {{b "options: intern_events, optionsValue: _id, optionsText: display_event, value: selected"}}> </select>
js:
Template.test.viewmodel({ selected: null, intern_events: function() { return Intern_Event.find(); }, display_event: function(item) { return item.title + ' ' + item.date; } });
optionsText takes currently only an object-key for the options-array. Is it possible to provide a function like above?
Great idea. Update to v6.1.0
html:
js:
optionsText takes currently only an object-key for the options-array. Is it possible to provide a function like above?