Page 1 of 1

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

Posted: 26 Jun 2019, 11:53
by tkinte
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

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

Posted: 03 Jul 2019, 08:28
by neil.walsh
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

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

Posted: 05 Jul 2019, 13:07
by tkinte
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

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

Posted: 05 Jul 2019, 14:24
by neil.walsh
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>