what is $(document).trigger("enhance")
cekvenich opened this issue · 2 comments
cekvenich commented
What does that do? Should we use it?
tia.
vmitsaras commented
It's required only for the HTML-Auto-Init on DOM-Ready
Example
<aside class="js-offcanvas"
data-offcanvas-options='{"modifiers": "left,overlay"}'
id="off-canvas-id">...</aside>
<script>
// you have to trigger enhance
$( function(){
$(document).trigger("enhance");
});
</script>
cekvenich commented
thx! (ps we are using it on projects here: blog.metabake.org )