diff --git a/auto-init.html b/auto-init.html index dc520ca..1af51a4 100644 --- a/auto-init.html +++ b/auto-init.html @@ -13,14 +13,24 @@

- Auto Init allows you to initialize all of the Materialize Components with a single function call. It is important to note that you cannot pass in options using this - method. + Auto Init allows you to initialize all of the Materialize Components with a single function call.

Initialization

M.AutoInit();
+ +

Or with options to configure each components:

+
M.AutoInit(document.body, {
+  Dropdown: {
+    // pass options for Dropdown here
+  },
+  FloatingActionButtonOptions: {
+    // pass options for FloatingActionButtonOptions here
+  },
+  // Component: { ... }
+});
@@ -42,6 +52,12 @@

Options

document.body DOM Element to search within for components. + + options + Object +
{}
+ Options for each component (see components respective documentation for more information). +