mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2025-07-26 16:09:48 +03:00
Merge a91098a20a
into 1bed3664e0
This commit is contained in:
commit
0ab0fef92b
|
@ -291,7 +291,7 @@ Every function expects an optional value that will be used as a selector for the
|
||||||
`$.material.ripples("#selector, #foobar")` will apply Ripples.js only to `#selector` and `#foobar`.
|
`$.material.ripples("#selector, #foobar")` will apply Ripples.js only to `#selector` and `#foobar`.
|
||||||
The functions that allows an optional selector are `$.material.ripples`, `$.material.input`, `$.material.checkbox` and `$.material.radio`.
|
The functions that allows an optional selector are `$.material.ripples`, `$.material.input`, `$.material.checkbox` and `$.material.radio`.
|
||||||
|
|
||||||
You can even override the default values using the `$.material.options` function. The default values are:
|
You can even override the default values using the `$.extend` function. The default values are:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
$.material.options = {
|
$.material.options = {
|
||||||
|
@ -302,6 +302,12 @@ $.material.options = {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
So, for example:
|
||||||
|
|
||||||
|
$.extend($.material.options, {
|
||||||
|
inputElements: "input.form-control.material, textarea.form-control.material, select.form-control.material"
|
||||||
|
});
|
||||||
|
|
||||||
### Arrive.js support
|
### Arrive.js support
|
||||||
|
|
||||||
If you need to dynamically add elements to your DOM then you may need to include [`Arrive.js`](https://github.com/uzairfarooq/arrive) before `Material.js`. This will automatically apply `material.js` to every new element added via JavaScript.
|
If you need to dynamically add elements to your DOM then you may need to include [`Arrive.js`](https://github.com/uzairfarooq/arrive) before `Material.js`. This will automatically apply `material.js` to every new element added via JavaScript.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user