GithubHelp home page GithubHelp logo

mattcfox / pull-refresh-panel Goto Github PK

View Code? Open in Web Editor NEW

This project forked from scaljeri/pull-refresh-panel

0.0 1.0 0.0 3.32 MB

This is a Sencha Touch 2 plugin which adds the PullRefresh functionality to Panels

License: GNU Lesser General Public License v3.0

XML 39.44% JavaScript 48.61% HTML 7.60% CSS 2.49% Ruby 1.85%

pull-refresh-panel's Introduction

pull-refresh-panel

Demo: http://scaljeri.github.com/pull-refresh-panel

This is a Sencha Touch 2 plugin which adds the PullRefresh functionality to Panels. The plugin is located at "./Scaljeri/plugin"

To use this plugin a callback function is required which needs to perform the actual update

    plugins: [
    	{
        		xclass: 'Scaljeri.plugin.PullRefreshPanel',
        		pullRefreshText: 'Pull down to update!',
        		refreshFn: function(){
					Ext.get('refresh-date').setHtml(Ext.Date.format(new Date(), 'm/d/Y G:i:s')) ;
        			this.refreshReady(); // call this function when ready
        		}
    	}
	],

If this plugin is attached to Ext.dataview.List, it behaves identical to the PullRefresh plugin.

Furthermore, to be able to build this demo, you have to link the touch folder into the root of this project

    $> cd pull-refresh-panel
    $> ln -s /Path/To/sencha-touch-2.2.0 ./touch

pull-refresh-panel's People

Contributors

scaljeri avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.