menu

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.

Initialization


  M.AutoInit();
        

Options

Name Type Default Description
context Element document.body DOM Element to search within for components.

Ignoring Elements

If you want M.AutoInit() to ignore a certain element, you can add the class .no-autoinit to the element and it will not be initialized by autoinit.