makedroppane関数のオプションを設定する方法を教えてください。わかりません。これが私のサンプルコードです。
辞書配列である必要があることは知っていますが、それを配置するかどうかはわかりません。この例では、[0]があります。オプション設定の実際のドキュメントの例がいいでしょう。
filepicker.setKey('###########');
var options = {
"multiple": true
};
filepicker.makeDropPane($('#exampleDropPane')[0],options, {
dragEnter: function() {
$("#exampleDropPane").html("Drop to upload");
},
dragLeave: function() {
$("#exampleDropPane").html("Drop files here");
},
progress: function(percentage) {
$("#exampleDropPane").text("Uploading ("+percentage+"%)");
$("#pb").css('width', (percentage)+'%');
},
done: function(data) {
console.log(data);
alert('done');
}
});