website/public/docs/v3.1.4/Reference/JavaScript/bindElements.php
vlw 7a8fc36ec0 feat: new website design and update to Vegvisir 3.1 (#2)
Brand new design for the website following the new design language I used for [version 2.0 of my personal website](https://codeberg.org/vlw/vlw.se/releases/tag/2.0.0).

Reviewed-on: https://codeberg.org/vegvisir/website/pulls/2
Co-authored-by: vlw <victor@vlw.se>
Co-committed-by: vlw <victor@vlw.se>
2025-03-05 11:16:54 +00:00

22 lines
No EOL
860 B
PHP

<?= VV::include("public/docs/v3.1.4/Reference/layout") ?>
<main>
<section>
<h1>Navigation.bindElements()</h1>
<p>Static method on the <code class="mtk17">Navigation</code> class.</p>
<p>Calling this method will trigger an automatic binding of anchor tags that haven't been bound yet.</p>
<p>SSR anchor tags are automatically bound. This method should be called after you've added anchor tags dynamically with JavaScript.</p>
</section>
<section>
<?= VV::include("snippets/HTMLCodeDemoElement/HTMLCodeDemoElement?id=docs/v3.1.4/JS/bindElements/description") ?>
</section>
<hr>
<section>
<h1>Examples</h1>
</section>
<section>
<h2>Binding an anchor tag added programmatically</h2>
</section>
<section>
<?= VV::include("snippets/HTMLCodeDemoElement/HTMLCodeDemoElement?id=docs/v3.1.4/JS/bindElements/example_bind") ?>
</section>
</main>