Expand my Community achievements bar.

SOLVED

Timeline open by default in touch

Avatar

Level 2

In the touch interface is there any way to set the 'Timeline' views as open by default?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,

Do you wanna show like below:

chrome-capture.gif

This can be done using javascript/jquery.

e.g. I ran below javascript just to try document.ready function, works for me.

I used selector just to test not for actual development, you can be specific when use selectors.

$( document ).ready(function() {

    console.log( "ready!" );

    timeFunction();

    function timeFunction() {

            setTimeout(function(){

                $("#coral-id-0").click();

                $("#coral-id-1 > coral-selectlist-item:nth-child(2)").click();

                }, 700);

         }

});



Arun Patidar

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi,

Do you wanna show like below:

chrome-capture.gif

This can be done using javascript/jquery.

e.g. I ran below javascript just to try document.ready function, works for me.

I used selector just to test not for actual development, you can be specific when use selectors.

$( document ).ready(function() {

    console.log( "ready!" );

    timeFunction();

    function timeFunction() {

            setTimeout(function(){

                $("#coral-id-0").click();

                $("#coral-id-1 > coral-selectlist-item:nth-child(2)").click();

                }, 700);

         }

});



Arun Patidar