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.