Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I'm trying to create a webpart with multiple tabs (which I've achieved) and within each of those tabs I'd like to be able to display collapsible content sections. I've figured out how to add a script for tabbed content, and in a seperate environment I've figured out how to create a collapsible content webpart; my problem is that I can't figure out how to combine them.

I need a solution that will work in sharepoint online.

Thanks

share|improve this question
    
My assumption is that you are unable to combine both the functionality to work . This is more of constructing your html and javascript. Please post your exact part where you are struggling with the scripts. –  Mp Arvind May 1 at 9:09

1 Answer 1

Assumption 1: you achieve the tabs by loading a JavaScript file. Assumption 2: you achieve the collapsible parts by calling a JavaScript function.

Put the JavaScript function for the collapsible content at the bottom of the JavaScript file for the tabs. Since the JS file is loaded for the tabs, it now also contains the functions that are called in for the collapsing.

If you need more help, post your scripts.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.