jgallen23 / toc

Table of Contents Plugin
http://projects.jga.me/toc/
MIT License
531 stars 111 forks source link

Add headerText and itemClass options #14

Closed allspiritseve closed 11 years ago

allspiritseve commented 11 years ago
  1. headerText() was in the docs, but not the code. I needed it, so I added it.
  2. I also needed a way to specify the item class, so I added itemClass()– I was using fieldset legends as headers, and that didn't allow me a way to specify a hierarchy. By making it a callback I can set data attributes on the legend and use those in the class instead of the tag name.
jgallen23 commented 11 years ago

thanks.