Displaying collapsible text

Displaying collapsible text

by Simon Hanmer -
Number of replies: 1

Before I start reading up on jquery, is there anyway to add a section of html with collapsible text to a global configuration form within a block in v2.8?

I've got a new block I'm working on and I want to show a short status message followed by a collapsible div with more info in. I've tried adding html to an admin_setting_heading and I can display straight text but I was wondering if there's any built in collapse/expand method for a div.

Average of ratings: -
In reply to Simon Hanmer

Re: Displaying collapsible text

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

There is a rather old function in weblib.php: print_collapsible_region. Works fine though.