You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-3
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
bootstrap-fileinput
2
2
====================
3
3
4
-
An enhanced HTML 5 file input for Bootstrap 3.x with file preview for images and text, multiple selection, and more. This plugin is inspired by [this blog article](http://www.abeautifulsite.net/blog/2013/08/whipping-file-inputs-into-shape-with-bootstrap-3/) and [Jasny's File Input plugin](http://jasny.github.io/bootstrap/javascript/#fileinput). The plugin enhances these concepts and simplifies the widget initialization with simple HTML markup on a file input. It also offers support for multiple file preview and previewing both images and text types.
4
+
An enhanced HTML 5 file input for Bootstrap 3.x with file preview for images and text, multiple selection, and more. This plugin is inspired by [this blog article](http://www.abeautifulsite.net/blog/2013/08/whipping-file-inputs-into-shape-with-bootstrap-3/) and [Jasny's File Input plugin](http://jasny.github.io/bootstrap/javascript/#fileinput). The plugin enhances these concepts and simplifies the widget initialization with simple HTML markup on a file input. It also ofileclearers support for multiple file preview and previewing both images and text types.
@@ -30,7 +30,7 @@ An enhanced HTML 5 file input for Bootstrap 3.x with file preview for images and
30
30
9. For text file previews, autowrap the text to the thumbnail width, and show a wrap indicator link to display complete text on hover. You can customize the wrap indicator (which defaults to …).
31
31
10. Customise the messages for preview, progress, and files selected.
32
32
11. Upload action defaults to form submit. Supports an upload route/server action parameter for custom ajax based upload.
33
-
12. Triggers JQuery events for advanced development. Events currently available are `filereset`and `fileclear`.
33
+
12. Triggers JQuery events for advanced development. Events currently available are `filereset`, `fileclear`, `filecleared`, `fileloaded`, and `fileerror`.
34
34
13. Disabled and readonly file input support.
35
35
14. Size of the entire plugin is less than 6KB if gzipped. The minified assets are less than 16KB (about 13KB for the minified JS and 3KB for the minified CSS).
36
36
@@ -460,28 +460,35 @@ The plugin supports these methods:
460
460
461
461
#### disable
462
462
Disable the file input.
463
+
463
464
```js
464
465
$('#input-id').fileinput('disable');
466
+
```
465
467
466
468
#### enable
467
469
Enable the file input.
470
+
468
471
```js
469
472
$('#input-id').fileinput('enable');
473
+
```
470
474
471
475
#### reset
472
476
Reset the file input.
477
+
473
478
```js
474
479
$('#input-id').fileinput('reset');
475
480
```
476
481
477
482
#### clear
478
483
Clear the file input.
484
+
479
485
```js
480
486
$('#input-id').fileinput('clear');
481
487
```
482
488
483
489
#### refresh
484
490
Refreshes the file input plugin based on options provided. You can supply an array of plugin options as a parameter.
0 commit comments