diff --git a/auto-init.html b/auto-init.html index f8ff8ae..dc520ca 100644 --- a/auto-init.html +++ b/auto-init.html @@ -20,9 +20,7 @@
- M.AutoInit();
-
+ M.AutoInit();
The filled buttons communicates high emphasized actions. This is the Stadard Button Design. You can add the class filled to the button to provide this style. This should be the main Actions on a Page, so be carful. A good rule of thumb is to add just one primary action per page or field of view.
- Standard Button - Create - addCreate - editUpdate +
Copied!
content_copy
-
-
-Standard Button
-Create
-
+Standard Button
+Create
+
addCreate
-
+
editUpdate
-
-
-
-
+
Copied! content_copy@@ -73,20 +72,22 @@
-Create - +Create + addCreate - + addCreate Tonal
Outlined
The outlined button communicates a medium emphasized action. Just add the class outlined to the button.
- Create - addCreate - addCreate +Copied! content_copy
-Create - +Create + addCreate - + addCreate @@ -100,26 +101,29 @@Elevated
The elevated button is a tonal button with a shadow. This button that signify medium emphazied actions and seek to give depth to a mostly flat page. Try to only use shadows when absolutely neccessary, to prevent shadow creep. Also keep in mind that on darker backgrounds the shadows are not really good visible. - Create - addCreate - addCreate - Create - addCreate + +Copied! content_copy
-Create - +Create + addCreate - + addCreate -Create -addCreate +Create +addCreate
Copied! @@ -152,6 +158,7 @@Text
Copied! content_copy -- var instance = M.Carousel.getInstance(elem); -
+var instance = M.Carousel.getInstance(elem);
Integer (optional): How many times the carousel slides.
-
-instance.next();
+
+instance.next();
instance.next(3); // Move next n times.
-
+
Integer (optional): How many times the carousel slides.
-
-instance.prev();
+ instance.prev();
instance.prev(3); // Move previous n times.
-
+
Move carousel to nth slide
Integer: Index of slide.
-
-instance.set();
+ instance.set();
instance.set(3); // Set to nth slide.
-
+
Destroy plugin instance and teardown
-
-instance.destroy();
-
+ instance.destroy();
Copied!
content_copy
-
-
-
+
Drop Me!
@@ -60,9 +54,7 @@
- view_modulefour
- cloudfive
-
-
-
+
Copied!
content_copy
-
- document.addEventListener('DOMContentLoaded', function() {
- var elems = document.querySelectorAll('.dropdown-trigger');
- var instances = M.Dropdown.init(elems, {
- // specify options here
- });
+
+document.addEventListener('DOMContentLoaded', function() {
+ var elems = document.querySelectorAll('.dropdown-trigger');
+ var instances = M.Dropdown.init(elems, {
+ // specify options here
});
-
-
+});
-
- document.addEventListener('DOMContentLoaded', function() {
- var elems = document.querySelectorAll('.dropdown-trigger')[0];
- var instances = M.Dropdown.init(elems, {
- // the dropdown is aligned to left
- alignment: 'left',
- // enabled for example to be visible
- constrainWidth: false,
- });
- });
-
+
+document.addEventListener('DOMContentLoaded', function() {
+ var elems = document.querySelectorAll('.dropdown-trigger')[0];
+ var instances = M.Dropdown.init(elems, {
+ // the dropdown is aligned to left
+ alignment: 'left',
+ // enabled for example to be visible
+ constrainWidth: false,
+ });
+});
Copied! content_copy -- var instance = M.Dropdown.getInstance(elem); -
+var instance = M.Dropdown.getInstance(elem);
Open dropdown.
-
- instance.open();
-
+ instance.open();
Close dropdown.
-
- instance.close();
-
+ instance.close();
While dropdown is open, you can recalculate its dimensions if its contents have changed.
-
- instance.recalculateDimensions();
-
+ instance.recalculateDimensions();
Destroy plugin instance and teardown
-
- instance.destroy();
-
+ instance.destroy();