aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorhugo <hugo@web>2013-11-06 12:56:20 -0400
committeradmin <admin@branchable.com>2013-11-06 12:56:20 -0400
commit6914b975b895a431767a9e584b7b1ac3fa07285c (patch)
treebaf17f397c8776b3f11662b690614d87ec55cbf7 /doc
parent520faae54fc9355d0142e569651591765430db81 (diff)
downloadikiwiki-6914b975b895a431767a9e584b7b1ac3fa07285c.tar
ikiwiki-6914b975b895a431767a9e584b7b1ac3fa07285c.tar.gz
proposal about class parameters for toggle
Diffstat (limited to 'doc')
-rw-r--r--doc/ikiwiki/directive/toggle/discussion.mdwn13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/ikiwiki/directive/toggle/discussion.mdwn b/doc/ikiwiki/directive/toggle/discussion.mdwn
new file mode 100644
index 000000000..e1a2a4a42
--- /dev/null
+++ b/doc/ikiwiki/directive/toggle/discussion.mdwn
@@ -0,0 +1,13 @@
+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:
+
+> 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.
+
+So that for instance:
+
+ [[!toggle id="toggleable-id" text="Toggle" class="collapser"]]
+
+could produce:
+
+ <a class="toggle collapser" href="#posts.toggleable-id">Toggle</a>
+
+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.