react-antd-admin-panel
Version:
Easy prototyping admin panel using React and Antd
22 lines • 887 B
JavaScript
import Default from "./Default";
export default class Upload extends Default {
constructor() {
super('Upload');
/** Non-builder variables are set before the constructor. */
this._fileWasUploaded = false;
this._fileList = [];
/** On-functions are called by the .tsx and set by the builder. */
this._onFileDeleted = () => { };
/** Component-return functions. */
this.clearFiles = () => { };
}
url(v) { this._url = v; return this; }
header(v) { this._header = v; return this; }
onThen(v) { this._onThen = v; return this; }
onCatch(v) { this._onCatch = v; return this; }
fileType(v) { this._fileType = v; return this; }
fileList(v) { this._fileList = v; return this; }
onFileDeleted(v) { this._onFileDeleted = v; return this; }
;
}
//# sourceMappingURL=Upload.js.map