JavaScripting

The definitive source of the best
JavaScript libraries, frameworks, and plugins.


  • ×

    Hook.js

    Pull to refresh. For the web.
    Filed under 

    • 🔾39%Overall
    • 1,604
    • 214.3 days
    • 🕩281
    • 👥6

    Hook

    Pull to refresh for the web

    Dependencies

    • jQuery

    Settings

    • refresh: refreshes entire page, default is true, if false will call callback (must also have callback setting),
    • callback: custom callback function

    Examples:

    // Defaults
    $('#hook').hook();
    
    // Callback
    $('#hook').hook({
      refresh: false,
      callback: function(){
        console.log('Hello, World!');
      }
    });
    
    Show All