簡體   English   中英

是否可以使用帶有JavaScript的選擇器API自定義Dropbox?

[英]Is it possible to customize dropbox with chooser API with JavaScript?

我正在使用java腳本選擇器將文件上傳到保管箱 但是我無法自定義彈出窗口的視圖(隱藏一些按鈕)。 有什么方法可以管理保管箱UI ...? 我的jsp代碼如下。

<html>
<head>
    <script src="https://www.dropbox.com/static/api/2/dropins.js" id="dropboxjs" data-app-key="erl9eib1827pg2z"></script>
    <script src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
</head>
<body>
    <div id="container"></div>
    <a id="link"></a>

    <script>
        var button = Dropbox.createChooseButton({
            success: function(files) {
                var linkTag = document.getElementById('link');
                               linkTag.href = files[0].link;
                                linkTag.textContent = files[0].link;
            },
            linkType: "preview"
        });
        document.getElementById('container').appendChild(button);
    </script>
</body>
</html>

選擇器不適用於將文件上傳到Dropbox。 它用於訪問Dropbox中已經存在的文件。

該代碼似乎不是JSP(JavaServer Pages)。 它似乎是HTML和JavaScript。

不,無法自定義選擇器的用戶界面。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM