-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
auto-init.html
76 lines (71 loc) · 2.58 KB
/
auto-init.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!DOCTYPE html>
<html lang="en">
<head>
{{> head }}
</head>
<body>
{{> navbar }}
<main>
{{> intro}}
<div class="container">
<div class="row">
<div class="col s12 m8 offset-m1 xl7 offset-xl1">
<div id="introduction" class="section scrollspy">
<p class="caption">
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.
</p>
</div>
<div id="initialization" class="scrollspy section">
<h3 class="header">Initialization</h3>
<pre><code class="language-javascript">M.AutoInit();</code></pre>
</div>
<div id="options" class="scrollspy section">
<h3 class="header">Options</h3>
<table class="striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Default</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>context</td>
<td>Element</td>
<td>document.body</td>
<td>DOM Element to search within for components.</td>
</tr>
</tbody>
</table>
</div>
<div id="options" class="scrollspy section">
<h3 class="header">Ignoring Elements</h3>
<p>
If you want
<code class="language-javascript">M.AutoInit()</code> to ignore a certain element, you can add the class <code class="language-markdown">.no-autoinit</code> to the
element and it will not be initialized by autoinit.
</p>
</div>
</div>
<div class="col hide-on-small-only m3 xl3">
<div class="toc-wrapper">
<div style="height: 1px">
<ul class="section table-of-contents">
<li><a href="#introduction">Introduction</a></li>
<li><a href="#initialization">Initialization</a></li>
<li><a href="#options">Options</a></li>
<li><a href="#ignoring">Ignoring Elements</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</main>
{{> footer }}
<script type="module" src="/src/main.ts"></script>
</body>
</html>