Skip to content
This repository has been archived by the owner on May 27, 2021. It is now read-only.

Update TOC, or dynamic TOC? #5

Open
giorgio79 opened this issue May 15, 2017 · 2 comments
Open

Update TOC, or dynamic TOC? #5

giorgio79 opened this issue May 15, 2017 · 2 comments

Comments

@giorgio79
Copy link

How can I reset the TOC?
Eg, rebuild it if there are new headings on the page?
Tried setting the html("") and initialising again, but nothing happened.

@giorgio79
Copy link
Author

giorgio79 commented May 15, 2017

Eg tried it here, but no luck.

https://rawgit.com/nghuuphuoc/tocjs/master/demo/style.html

    $('#toc').html("");
    $('#toc').toc({
        elementClass: 'toc',
        ulClass: 'nav',
        heading: 'Report Table of Contents'
    });

@thomas10-10
Copy link

any info ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants