All Projects → alirezamirian → angular-material-swipe-to-refresh

alirezamirian / angular-material-swipe-to-refresh

Licence: MIT License
Swipe to refresh (pull to refresh) for Angular Material

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to angular-material-swipe-to-refresh

Minirefresh
优雅的H5 下拉刷新。零依赖,高性能,多主题,易拓展。(A Graceful HTML5 Drop-Down-Refresh Plugin. )
Stars: ✭ 1,525 (+10066.67%)
Mutual labels:  pull-down-refresh, pull-to-refresh
angular-enterprise-application-development-samples
Angular Enterprise Application Development Samples. 《Angular企业级应用开发实战》源码
Stars: ✭ 38 (+153.33%)
Mutual labels:  angular-material
LottieSwipeRefreshLayout
Pull to refresh layout that shows a Lottie View.
Stars: ✭ 50 (+233.33%)
Mutual labels:  pull-to-refresh
course
gary60405.github.io/course/
Stars: ✭ 17 (+13.33%)
Mutual labels:  angular-material
angular-material-boilerplate
A straightforward and well structured boilerplate based on Google's Angular Material project.
Stars: ✭ 28 (+86.67%)
Mutual labels:  angular-material
ngx-mat-daterange-picker
Date range picker component based of Angular Material Calendar component and configurable date presets. Packaged using ng-packagr.
Stars: ✭ 33 (+120%)
Mutual labels:  angular-material
GeneralRecyclerViewFragment
Can automatically pull down the refresh, pull up the page of RecyclerviewFragment(能够自动下拉刷新,上拉翻页的RecyclerviewFragment)
Stars: ✭ 56 (+273.33%)
Mutual labels:  pull-to-refresh
journey full microservices
The journey to building a full microservice app
Stars: ✭ 16 (+6.67%)
Mutual labels:  angular-material
BookCart
An e-commerce application for an online book store.
Stars: ✭ 116 (+673.33%)
Mutual labels:  angular-material
ncg-crud-ngx-md
Angular 4+ Material Design CRUD/Admin app by NinjaCodeGen http://DNAfor.NET
Stars: ✭ 36 (+140%)
Mutual labels:  angular-material
ASPNETcoreAngularJWT
Angular in ASP.NET Core with JWT solution by systemjs
Stars: ✭ 48 (+220%)
Mutual labels:  angular-material
metadatamanagement
Metadatamanagement (MDM) - Data Search for Higher Education Research and Science Studies
Stars: ✭ 21 (+40%)
Mutual labels:  angular-material
hydrus-web
Web client for Hydrus
Stars: ✭ 38 (+153.33%)
Mutual labels:  angular-material
MagiRefresh
swift版下拉刷新,支持多种样式,同时支持,加载动画,网络错误占位(有兴趣学习如何用swift使用runtime的可以看看)
Stars: ✭ 25 (+66.67%)
Mutual labels:  pull-to-refresh
currency-exchange
Currency Exchange | powered by Angular 10, TypeScript, ES6+ features, SCSS, JavaScript, PWA
Stars: ✭ 13 (-13.33%)
Mutual labels:  angular-material
extensions
Angular Material Extensions Library.
Stars: ✭ 203 (+1253.33%)
Mutual labels:  angular-material
nglp-angular-material-landing-page
NGLP is an Angular Material Landing Page.
Stars: ✭ 32 (+113.33%)
Mutual labels:  angular-material
Refreshable
🌀Pull to refresh and load more function for UIScrollView
Stars: ✭ 31 (+106.67%)
Mutual labels:  pull-to-refresh
ecommerce
Laravel open source e-commerce system.
Stars: ✭ 209 (+1293.33%)
Mutual labels:  angular-material
Angular-Firebase-Sortable-Table
Angular Firebase Sortable Table is a module that makes tables creation with firebase an easy task.
Stars: ✭ 28 (+86.67%)
Mutual labels:  angular-material

Angular Material Extensions - Swipe to refresh

Implementation of material design swipe to refresh for Angular Material.

swipe to refresh

Dependencies

  • Angular Material

Installation

bower install mde-swipe-to-refresh --save

Usage

Add script and style:

...
<script src="bower_components/mde-swipe-to-refresh/dist/mde-swipe-to-refresh.min.js"></script>
<link rel="stylesheet" href="bower_components/mde-swipe-to-refresh/dist/mde-swipe-to-refresh.min.css">
...

Add module dependency:

angular.module("yourApp", ['mde.swipeToRefresh'])

Use it:

<div mde-swipe-to-refresh mde-on-refresh="ctrl.refresh()"></div>

By default scrolling element is assumed to be body. If it's not the case, you can specify it with one of the following ways:

  • mde-scroll-host-selector attribute:
<div mde-swipe-to-refresh mde-scroll-host-selector=".container"></any>

It will look up for the first ancestor that matches the selector.

  • mde-swipe-to-refresh-scroll-host directive:
<div mde-swipe-to-refresh-scroll-host>
    <div mde-swipe-to-refresh></div>
</div>

Options

  • mde-on-refresh: Optional expression to evaluate on refresh. If promise is returned, component will stay in spinning state until promise is resolved or rejected.
  • mde-on-cancel: Optional expression to evaluate on cancel.
  • mde-scroll-host-selector: String for determining scroll host from ancestors. It will be ignored if mde-swipe-to-refresh-scroll-host directive is used.
  • mde-threshold: Threshold in pixels. Defaults to mdeSwipeToRefreshConfig.threshold

TODO

  • Improve demo
  • fix bug when scroll host is not correctly set
  • add arrow according to spec
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].