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
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,8 +22,8 @@ so this might not be true before the first stable release.
22
22
23
23
## Getting started
24
24
25
-
Navigate to the `template/` folder in this repository, and you will see the `index.html` file, which has the CSS include statements, in the `head` section and the JS includes just before `body` section closes.
26
-
You need to copy the `material/` folder to the root of your project, ensuring that all the files in your project can access the files through the relative URL, supplied in the CSS and the JS includes.
25
+
Navigate to the `dist/` folder in this repository, and you will see the `test.html` file, which has the CSS include statements, in the `head` section and the JS includes just before `body` section closes.
26
+
You need to copy the `dist/` folder to the root of your project, ensuring that all the files in your project can access the files through the relative URL, supplied in the CSS and the JS includes.
27
27
28
28
## Todo
29
29
@@ -95,7 +95,7 @@ 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
-
98
+
99
99
# Material.js
100
100
101
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.
@@ -104,31 +104,31 @@ Material.js is a jQuery plugin that add some magic to your markup and allows Mat
104
104
105
105
This plugin exposes some functions, them are:
106
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.
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
112
113
113
### Apply Material.js only to specific elements:
114
114
115
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
-
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
119
You can even override the default values using the `$.material.options` function, the default values are:
If you need to dynamically add elements to your DOM then you may need to include Arrive.js before Material.js, this will automatically apply Material.js to every new element added by you using JS.
0 commit comments