New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

mk-pullfresh

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mk-pullfresh

Pull to Refresh jQuery plugin

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

mkPullFresh

Pull to refresh jQuery plugin for mobile and desktop with CSS animation. Extremely simple usage. Asynchronous stop. Fully customizable. Material design included.

Demo

Installation

Include script and style sheet into your page:

<script src="path/to/plugin/mk-pullfresh.min.js" type="text/javascript"></script>
<link  href="path/to/plugin/mk-pullfresh.min.css" rel="stylesheet">

Basic usage

Initialize mkPullFresh on element you want to pull by one of the ways:

// no args, pending state will be 1 second long
$('.pulled').mkPullFresh(); 

// with refresh callback with one arg 'end' - function to stop pending when you need.
$('.pulled').mkPullFresh(function(end){
    // some code, may be async
	...
    end(); // stop pending state of pull indicator
  });

// with options. Refresh function can be passed as 'refresh' parameter
$('.pulled').mkPullFresh(options);

// both refresh function and options given
$('.pulled').mkPullFresh(refresh,options);

Details and Demo

Keywords

jquery-plugin

FAQs

Package last updated on 07 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts