Page 1 of 1

Customizing Web Help JavaScript

Posted: Thu Dec 01, 2016 4:32 pm
by tmakita
Hi,

This is newbie question.

Current Web Help Responsive output supports slideToggle animation for the section title. As you know the default behavior is expanded. When a user clicks the button aside the title, the section contents are collapsed.

My user request is to set the default status to be collapsed. This is because the user can select the contents by clicking the button as they like.

In my examination this code is written in webhelp-responsive\oxygen-webhelp\template\resources\js\wt_expand.js. I manually modified the code and confirmed that it is possible to set default status collapsed.

My question is for this customization. Can I perform this JavaScript customization from the outside? (Not modify Web Help Plug-in directly by myself) Or should I create the new plug-in that imports the Web Help plug-in?

I'm waiting for your reply.

Regards,

Re: Customizing Web Help JavaScript

Posted: Fri Dec 02, 2016 3:31 pm
by radu_pisoi
Hi,

You can contribute additional JavaScript resources to change the default WebHelp behavior.

You can find more information about this task our user manual:
* Adding Custom HTML Content in WebHelp Responsive Output
* Copying Additional Resources to WebHelp Output Directory

Re: Customizing Web Help JavaScript

Posted: Fri Dec 02, 2016 4:27 pm
by tmakita
Hi Radu,

Thank you for your information about customization.
I realized that it is possible to add my JavaScript customization as described in your link.

Regards,