|
@@ -460,35 +460,30 @@ The plugin supports these methods:
|
|
|
|
|
|
#### disable
|
|
#### disable
|
|
Disable the file input.
|
|
Disable the file input.
|
|
-
|
|
|
|
```js
|
|
```js
|
|
$('#input-id').fileinput('disable');
|
|
$('#input-id').fileinput('disable');
|
|
```
|
|
```
|
|
|
|
|
|
#### enable
|
|
#### enable
|
|
Enable the file input.
|
|
Enable the file input.
|
|
-
|
|
|
|
```js
|
|
```js
|
|
$('#input-id').fileinput('enable');
|
|
$('#input-id').fileinput('enable');
|
|
```
|
|
```
|
|
|
|
|
|
#### reset
|
|
#### reset
|
|
Reset the file input.
|
|
Reset the file input.
|
|
-
|
|
|
|
```js
|
|
```js
|
|
$('#input-id').fileinput('reset');
|
|
$('#input-id').fileinput('reset');
|
|
```
|
|
```
|
|
|
|
|
|
#### clear
|
|
#### clear
|
|
Clear the file input.
|
|
Clear the file input.
|
|
-
|
|
|
|
```js
|
|
```js
|
|
$('#input-id').fileinput('clear');
|
|
$('#input-id').fileinput('clear');
|
|
```
|
|
```
|
|
|
|
|
|
#### refresh
|
|
#### refresh
|
|
Refreshes the file input plugin based on options provided. You can supply an array of plugin options as a parameter.
|
|
Refreshes the file input plugin based on options provided. You can supply an array of plugin options as a parameter.
|
|
-
|
|
|
|
```js
|
|
```js
|
|
// example 1 (disable at runtime)
|
|
// example 1 (disable at runtime)
|
|
$('#input-id').attr('disabled', 'disabled');
|
|
$('#input-id').attr('disabled', 'disabled');
|