0

私はaldeed:autoformのコレクションを持つselect入力フィールドに値を設定しました。流星にhtmlデータリストフィールドを追加する方法:autoform?

フィールド宣言

{{> afFormGroup name="patientID" type="select" options=patientIDs}} 

ヘルパー

patientIDs:function() { 

    return Meteor.users.find({}).map(function (user) { 
     return {label: user.profile.firstName, value: user._id}; 
    }); 

} 

しかし、それはオプションを選択するには大きすぎる、ドロップダウンであることが判明しました。したがって、私はHTML datalistのような機能をautoformに実装する必要があります。どのように流星aldeed:autoformでこれを実装するには?

答えて

1

autoformのためのselect2アドオンがあります。これはあなたが望むものを手に入れるのに役立ちます。 hereを参照してください。

関連する問題