Closed chongwang87 closed 8 years ago
Is it possible to make fileTypes reactive?
fileTypes
Example usage:
Template
{{> upload_bootstrap fileTypes=fileTypes multiple=true}}
Template helper
fileTypes: function(){ var instance = Template.instance(); return instance.uploadFileType; }
Template event from a dropdown selection
'change #uploadFileTypes': function(e,t){ var instance = Template.instance(), val = $(e.target).val(); // 'application/pdf' or 'image/*' instance.uploadFileType = val; }
Hi, well, this is a very custom behaviour. If you need, just fork the package and add it. I would consider a PR if it won't bloat the package too much.
Is it possible to make
fileTypes
reactive?Example usage:
Template
Template helper
Template event from a dropdown selection