]> sipb.mit.edu Git - ikiwiki.git/blob - doc/ikiwiki/directive/toggle/discussion.mdwn
proposal about class parameters for toggle
[ikiwiki.git] / doc / ikiwiki / directive / toggle / discussion.mdwn
1 IMHO, i would be very useful to be able to customise the toggle indicator a little bit more. Something like the img directive parameters would be appreciated:
2
3 > You can also pass alt, title, class, align, id, hspace, and vspace parameters. These are passed through unchanged to the html img tag. If you include a caption parameter, the caption will be displayed centered beneath the image.
4
5 So that for instance:
6
7      [[!toggle id="toggleable-id" text="Toggle" class="collapser"]]
8
9 could produce:
10
11      <a class="toggle collapser" href="#posts.toggleable-id">Toggle</a>
12
13 This could be extra-useful when using icons like [Font Awesome](http://fortawesome.github.io/Font-Awesome/icons/) so that the toggle link could be a nice icon instead of text.