Page 1 of 1

Scroll to Top on the CollapsibleSet

Posted: Wed Apr 23, 2014 1:45 am
by YoshiTiquish

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.


Scroll to Top on the CollapsibleSet

Posted: Wed Apr 23, 2014 3:24 am
by Igor

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


Scroll to Top on the CollapsibleSet

Posted: Wed Apr 23, 2014 5:57 am
by YoshiTiquish

thanks a lot!