J'ai rempli un champ de saisie select avec une collection dans aldeed: autoform.Comment ajouter un champ datalist html à un météore aldeed: autoform?
Déclaration sur le terrain
{{> afFormGroup name="patientID" type="select" options=patientIDs}}
Helper
patientIDs:function() {
return Meteor.users.find({}).map(function (user) {
return {label: user.profile.firstName, value: user._id};
});
}
Mais il est avéré être le menu déroulant trop grand pour sélectionner une option. Par conséquent, j'ai besoin de mettre en œuvre une fonctionnalité similaire à HTML datalist dans l'autoform. Comment implémenter ceci dans meteor aldeed: autoform?