How to customize Upload/Download Template of Blueimp jQuery File Upload

前端 未结 2 1829
没有蜡笔的小新
没有蜡笔的小新 2021-02-05 17:16

I\'m trying to use the jQuery File Upload Demo. I\'ve searched through wiki & template engine wiki but couldn\'t find an answer how to customize the Upload/Download template

2条回答
  •  情话喂你
    2021-02-05 18:17

    From looking at the examples and the live demo I created this jsbin: http://jsbin.com/ivonow/1/

    It's the code from the demo. I took out the jQuery templates at the bottom of the html and added the uploadTemplate function from above to the options passed in when setting up the fileupload object.

    I also had to set uploadTemplateId and downloadTemplateId to null so it wouldn't try to load the the defaults:

    {
      uploadTemplateId: null,
      downloadTemplateId: null,
    }
    

    In the html, I took out the table that surrounds the row templates and add a UL but the styling is still weird.

    Hope this helps.

提交回复
热议问题