pull-to-refresh-js

Pull-to-refresh feature for mobile Safari with native Scrolling

  • 所有者: visiongeist/pull-to-refresh-js
  • 平台:
  • 許可證:
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

pull-to-refresh.js

This plugin enables a pull-to-refresh functionality in mobile safari for scrollable block elements with native scrolling on iOS (!)

Just create this markup

<div class="scrollable">
    <div class="wrap">
    	<!-- Your content here -->
    </div>
</div>

and enable the plugin through passing a callback which returns a promise e.g.

$('.scrollable').pullToRefresh({
    callback: function() {
        var def = $.Deferred();
        
        setTimeout(function() {
            def.resolve();      
        }, 3000); 

        return def.promise();
    }
});

Don't forget to include jquery.plugin.pullToRefresh.js and pull-to-refresh.css

Works for iOS5 and newer.

主要指標

概覽
名稱與所有者visiongeist/pull-to-refresh-js
主編程語言JavaScript
編程語言JavaScript (語言數: 1)
平台
許可證
所有者活动
創建於2012-10-15 15:50:05
推送於2012-10-16 21:17:41
最后一次提交2012-10-17 00:17:41
發布數0
用户参与
星數320
關注者數8
派生數54
提交數5
已啟用問題?
問題數6
打開的問題數6
拉請求數0
打開的拉請求數0
關閉的拉請求數1
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?