Make page toggles default expanded

Please post all questions and comments regarding Help & Manual 7 here.

Moderators: Alexander Halser, Tim Green

Make page toggles default expanded

Unread postby Andie Davidson » Tue Feb 19, 2019 6:44 pm

Using the iFrames responsive skin for webhelp:
For a page with a number of expanding toggled sections, and the button:
<a href="javascript:HMToggleExpandAll(!HMAnyToggleOpen())" title="Click to open/close expanding sections"><span class="hmbtntoggle"></span></a>

Is it possible to flip the "click to open/close expanding sections" (HMtoggleExpandAll in helpman_topicinit.js) so that the default is all expanded, and you click to collapse all - not the other way round?
Andie Davidson
 
Posts: 9
Joined: Wed Apr 05, 2017 9:38 am

Re: Make page toggles default expanded

Unread postby Tim Green » Wed Feb 20, 2019 8:53 am

Hi Andie,

Is it possible to flip the "click to open/close expanding sections" (HMtoggleExpandAll in helpman_topicinit.js) so that the default is all expanded, and you click to collapse all - not the other way round?

You just need to define your toggles to be open by default instead of closed. The setting for this is in the upper left of the toggle definition dialog. There you can define if the toggle is to be open or closed by default in screen (WebHelp and CHM) and print (PDF, DOCX, eBooks) output,. :)
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
User avatar
Tim Green
Site Admin
 
Posts: 20584
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany

Re: Make page toggles default expanded

Unread postby Andie Davidson » Wed Feb 20, 2019 1:46 pm

Doh! 'Help Expanded'! Of course. Thanks.
Andie Davidson
 
Posts: 9
Joined: Wed Apr 05, 2017 9:38 am


Return to Help & Manual 7 Forum

Who is online

Users browsing this forum: Baidu [Spider] and 8 guests

cron