@operato/pull-to-refresh
Advanced tools
Comparing version 0.1.2 to 0.1.4
@@ -6,2 +6,16 @@ # Change Log | ||
### [0.1.4](https://github.com/hatiolab/operato/compare/v0.1.3...v0.1.4) (2021-09-12) | ||
### :rocket: New Features | ||
* add @operato/styles webmodule ([937b99f](https://github.com/hatiolab/operato/commit/937b99f803b37ebf073cc9419de5dfa913d27199)) | ||
### :bug: Bug Fix | ||
* updated README.md for pull-to-refresh component ([3050b11](https://github.com/hatiolab/operato/commit/3050b11ea2bdab14f41f383795de32f79708d136)) | ||
### [0.1.2](https://github.com/hatiolab/operato/compare/v0.1.1...v0.1.2) (2021-09-10) | ||
@@ -8,0 +22,0 @@ |
@@ -6,3 +6,3 @@ { | ||
"author": "heartyoh", | ||
"version": "0.1.2", | ||
"version": "0.1.4", | ||
"main": "dist/src/index.js", | ||
@@ -17,3 +17,3 @@ "module": "dist/src/index.js", | ||
"url": "git+https://github.com/hatiolab/operato.git", | ||
"directory": "packages/pull-to-refresh" | ||
"directory": "webcomponents/pull-to-refresh" | ||
}, | ||
@@ -96,3 +96,3 @@ "exports": { | ||
}, | ||
"gitHead": "17db5963d92ef318474b01d71416fb5219c710e4" | ||
"gitHead": "c28c0704e5507df66de8c3f17fd5873aa25b78c3" | ||
} |
# \<pull-to-refresh> | ||
> This is ES module based on `https://www.npmjs.com/package/pull-to-refresh` | ||
More information about usage or others at [pull-to-refresh](https://github.com/mobkits/pull-to-refresh) | ||
This webcomponent follows the [open-wc](https://github.com/open-wc/open-wc) recommendation. | ||
@@ -8,3 +12,3 @@ | ||
```bash | ||
npm i pull-to-refresh | ||
npm i @operato/pull-to-refresh | ||
``` | ||
@@ -16,6 +20,12 @@ | ||
<script type="module"> | ||
import 'pull-to-refresh/pull-to-refresh.js'; | ||
import { pulltorefresh } from '@operato/pull-to-refresh' | ||
pulltorefresh({ | ||
container: document.body, | ||
scrollable: document.querySelector('#demo'), | ||
refresh: () => { | ||
console.log('refreshed...') | ||
} | ||
}) | ||
</script> | ||
<pull-to-refresh></pull-to-refresh> | ||
``` | ||
@@ -65,3 +75,2 @@ | ||
## Tooling configs | ||
@@ -68,0 +77,0 @@ |
Sorry, the diff of this file is not supported yet
77560
86