... class="content-section" style="display:none;" as default

Post Reply
User avatar
tkinte
Posts: 145
Joined: 18 Nov 2014, 08:24
Location: https://www.linkedin.com/in/tshitshi-kia-ntoni
Contact:

Hi.

What is the best way to enforce

Code: Select all

style="display:none;"
as the default style for all the content-section (

Code: Select all

class="content-section"
) except the description for all of views ?

Best regards

Tshitshi
User avatar
neil.walsh
Posts: 444
Joined: 16 Feb 2009, 13:45
Contact:

Hi Tshitshi,

That's a rather unusual request. What is it you are ultimately trying to achieve?

Let me know and I'll see if we can find a way to help

Cheers

Neil
User avatar
tkinte
Posts: 145
Joined: 18 Nov 2014, 08:24
Location: https://www.linkedin.com/in/tshitshi-kia-ntoni
Contact:

Hi Neil.

My need is a simple way to hide the content of all "content-section" . That could be achieved with a simple button and the appropriate JS code to adapt the CSS class .

If we consider the Business Capability Summary View, 10 clicks are needed actually to achieve that. My dream is to have the possibility to achieve the same with only ONE click .... eventually on a single button.

What an user experience improvment ! As you can see on the screenshots

Best regards

Tshitshi
You do not have the required permissions to view the files attached to this post.
User avatar
neil.walsh
Posts: 444
Joined: 16 Feb 2009, 13:45
Contact:

I'm still not sure I fully understand where you're going with this but this will probably work for most summary views. You can then click on the icons to show the content for the various sections.

Code: Select all

<script>
    $(document).ready(function(){
        $('.content-section').hide();
        $('.content-section:first').show();
    });
</script>
Post Reply