Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3548

Re: how to display footer only when user scroll down till end of Page

$
0
0

Use a little jQuery:

 

var oModel   = this.getView().getModel(),

    oContent = this.getView().byId("myPage").$().find("section");

 

jQuery(function($) {

    oContent.bind('scroll', function() {

        if($(this).scrollTop() + $(this).innerHeight()>=$(this)[0].scrollHeight) {

            oModel.setProperty("/isFooterVisible", true);

        }

    });

});

 

and use data binding to toggle the state of your footer

 

See this example


Viewing all articles
Browse latest Browse all 3548

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>