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
+31Lines changed: 31 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -95,6 +95,37 @@ Variations are available for every icon, including the original Bootstrap icons.
95
95
The syntax to add a Material icon is:
96
96
97
97
<i class="icon icon-material-favorite"></i>
98
+
99
+
# Material.js
100
+
101
+
Material.js is a jQuery plugin that add some magic to your markup and allows Material Design for Bootstrap to style some elements like inputs, checkboxes, radios etc.
102
+
103
+
### Functions:
104
+
105
+
This plugin exposes some functions, them are:
106
+
107
+
`$.material.inits` is a shortcut to run all the following commands.
108
+
`$.material.ripples()` will apply ripples.js to the default elements.
109
+
`$.material.input()` will enable the MD style to the text inputs, and other kind of inputs (number, email, file etc).
110
+
`$.material.checkbox():` will enable the MD style to the checkboxes (remember to follow the markup guidelines explained in the Inputs chapter.
111
+
`$.material.radio():` will enable the MD style to the checkboxes (remember to follow the markup guidelines explained in the Inputs chapter.
112
+
113
+
### Apply Material.js only to specific elements:
114
+
115
+
Every function expects an optional value that will be used as selector for the function, for example
116
+
`$.material.ripples("#selector, #foobar")` will apply Ripples.js only to `#selector` and `#foobar`.
117
+
The functions that allows an optional selector are `$.material.ripples`, `$.material.input`, `$.material.checkbox` and `$.material.radio`.
118
+
119
+
You can even override the default values using the `$.material.options` function, the default values are:
0 commit comments