Back to Materialize

Auto Init Content

jade/page-contents/auto_init_content.html

1.0.0556 B
Original Source

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

NameTypeDefaultDescription
contextElementdocument.bodyDOM 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.