- We’ve built the next version of the File Uploader.
Beside the built-in file uploading tabs like
dropbox, etc. there is an
option of implementing a tab with a custom behavior. This is a relatively
complex yet powerful way to customize the dialog.
When you want to add a custom tab, you should first register it with a given
name, which can then be used in your tabs list.
constructor is a function that is called to create a new tab.
A constructor is called every time a new dialog is opened. Here is how you declare it:
containeris a jQuery object holding your main tab element.
buttonis a jQuery object with your tab button.
dialogApiis an object(#dialog-api) holding methods to control your dialog.
settingsis a settings object.
nameis a name used when registering a tab and in the tabs list.
Note, a single constructor can be registered under several names. You can find more examples in our Uploading Widget customization tutorial.