Update TOC, or dynamic TOC?
giorgio79 opened this issue · comments
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.
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'
});
any info ?