RapiDoc icon indicating copy to clipboard operation
RapiDoc copied to clipboard

Can't set nav-active-item-marker="colored-block" as default

Open ddorian opened this issue 2 years ago • 1 comments

See demo https://jsfiddle.net/2mbakuh0/4/ Can't set it by default as an option in the HTML, only by clicking the button (probably after the page has loaded).

ddorian avatar Sep 15 '23 09:09 ddorian

Currently it works only if I set it in before-render:

<script>
    const rapidocEl = document.getElementById('thedoc');
        rapidocEl.addEventListener('before-render', (e) => {
          document.getElementById('thedoc').setAttribute('nav-active-item-marker', 'colored-block')
        });
</script>

ddorian avatar Sep 15 '23 10:09 ddorian