Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/daaarkling/jasnybootstrapfileinputauto

Fileinput with image view. Automatically change input file into Jasny Bootstrap Fileinput which is an extension to vanilla Bootsrap 3.
https://github.com/daaarkling/jasnybootstrapfileinputauto

Last synced: about 9 hours ago
JSON representation

Fileinput with image view. Automatically change input file into Jasny Bootstrap Fileinput which is an extension to vanilla Bootsrap 3.

Awesome Lists containing this project

README

        

# JASNY BOOTSTRAP FILE INPUT AUTO

Fileinput with or without image view. Automatically change input file into [Jasny Bootstrap Fileinput](http://www.jasny.net/bootstrap/javascript/#fileinput) which is an extension to vanilla [Bootsrap 3](http://getbootstrap.com/). See example index.html.

Dependencies js & css
----------
* [jQuery](http://jquery.com/)
* [Jasny Bootstrap Fileinput](http://www.jasny.net/bootstrap/customize/)
* [Bootstrap 3](http://getbootstrap.com/customize/)

Usage via JS
----------
include all depandencies and init like this:
```js
$('input[type=file]').fileinputAuto();
```

Usage via DATA attr
----------
include all depandencies and init like this:
```html

```

Options JS
----------
```js
$('input[type=file]').fileinputAuto({
btnSelect: "Select image",
btnRemove: "Remove",
btnChange: "Change",
thumbnail: false, // enable image preview, if false options below are omitted
width: 300,
height: 300,
defaultImage: '', // myimage.jpg, if is given options below are omitted
fakeimg: false, // fake image -> http://fakeimg.pl
message: 'No image' // text shown in thumbnail
});
```

Options via DATA attr
----------
```html

```