YoshiTiquish
Posts: 0
Joined: Sat Apr 19, 2014 9:31 am

Scroll to Top on the CollapsibleSet

Hi, i have a collapsible set, the data contained inside is longer than my screen so when I get to the end and click on the next collapsblockheader i need that the page scroll to top. I have try several things trying to binding the expand callback but im unable to find the object.

$( ".selector" ).collapsible({
expand: function( event, ui ) { /* Here i scroll to top */ }
})

Do you offer a simpler way to do this? Thanks.

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Scroll to Top on the CollapsibleSet

Hi,

Please use following code to bind expand event to your collapsible set.

pre
var onCollapsibleexpand = function(){
console.log("Expand");
//Your scroll code here.
};
// Where "mobilecollapsibleset_212" - is a collapsible set name.
Appery("mobilecollapsibleset_212").on("collapsibleexpand", onCollapsibleexpand)
/pre

YoshiTiquish
Posts: 0
Joined: Sat Apr 19, 2014 9:31 am

Scroll to Top on the CollapsibleSet

thanks a lot!

Return to “Issues”