Skip to content

Conversation

@gselderslaghs
Copy link
Member

Updated docs #539

@wuda-io wuda-io merged commit 2e2bef8 into materializecss:v2-dev Dec 23, 2024
Comment on lines +369 to +381
<h3 class="header">Initialization</h3>
<pre style="padding-top: 0px;">
<span class="copyMessage">Copied!</span>
<i class="material-icons copyButton">content_copy</i>
<code class="language-javascript copiedText">
document.addEventListener('DOMContentLoaded', function() {
const elems = document.querySelectorAll('.card');
const instances = M.Card.init(elems, {
// specify options here
});
});
</code>
</pre>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be removed when #579 is merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants