bs4uploader
v1.0.1
Published
Creates a bootstrap 4 compatible, light-weight file uploader. #### WARNING: This project is a work in progress and not in a usable state at the moment. ## Usage ```javascript // ES2015 module import import * as bs4uploader from 'bs4-uploader';
Downloads
2
Readme
Bootstrap 4 File Uploader
Creates a bootstrap 4 compatible, light-weight file uploader.
WARNING: This project is a work in progress and not in a usable state at the moment.
Usage
// ES2015 module import
import * as bs4uploader from 'bs4-uploader';
// CommonJS module require
var bs4uploader = require('bs4-uploader');
// ...
// ES2015 and CommonJS module use
bs4uploder.bs4uploder(MyDiv);
// ...
// AMD module require
require(['bs4uploader'], function ( bs4uploader ) {
// ...
// AMD module use
bs4uploader.bs4uploader(MyDiv);
// ...
});
Loading directly with the script tag
<html>
...
<script src="https://unpkg.com/bs4-uploader"></script>
<script>
// ...
// Global variable
bs4uploader.bs4uploader(MyDiv)
// Property in the window object
window.bs4uploader.bs4uploader(MyDiv)
// ...
</script>
</html>