RapiDoc
RapiDoc copied to clipboard
Can't set nav-active-item-marker="colored-block" as default
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).
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>