![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
balm-scroll
Advanced tools
iScroll based, smooth scrolling for Vue.js
npm i --save balm-scroll
# OR
yarn add balm-scroll
my-project/app/styles/global/_vendor.scss
)@import 'node_modules/balm-scroll/dist/balm-scroll.scss';
my-project/app/scripts/main.js
)import Vue from 'vue';
import BalmScroll from 'balm-scroll';
Vue.use(BalmScroll);
my-project/app/scripts/views/demos/hello.vue
)<template>
<ui-scroll :options="options">
<!-- Content -->
</ui-scroll>
</template>
export default {
data() {
return {
options: {
mouseWheel: true
}
};
}
};
Download pull-icon@2x.png
and extract to /path/to/my-project/app/images
.
<ui-scroll>
<ui-scroll-lite>
<ui-scroll-probe>
<ui-scroll-zoom>
<ui-scroll-infinite>
Tips: You can pick one component that better suits your need
Name | Type | Default | Description |
---|---|---|---|
options | object | {} | iScroll options |
pullDownLabel ⚠️ | string | 'Pull down to refresh' | Pull down label |
pullUpLabel ⚠️ | string | 'Pull up to load more' | Pull up label |
releaseLabel ⚠️ | string | 'Release to update' | Release label |
loadingLabel ⚠️ | string | 'Loading...' | Loading label |
pullDownY ⚠️ | number | 5 | Pull down Y position |
pullAction ⚠️ | function(scroll: object) | null | Scroll action |
pullDownAction | function(refresh: Function) | null | Pull down action |
pullUpAction | function(refresh: Function) | null | Pull up action |
excludes | array | Excludes for touchmove event preventDefault | |
scrollEnabled ⚠️ | boolean | true | Load more data controls |
⚠️: Applicable only for the
<ui-scroll-probe>
<ui-scroll ref="iScroll" :pullUpAction="pullUpAction"></ui-scroll>
export default {
methods: {
firstLoaded() {
// Update here your DOM
this.$refs.iScroll.refresh();
},
pullUpAction(refresh) {
// Update here your DOM
setTimeout(function() {
refresh();
}, 0);
}
}
};
Name | Description |
---|---|
default | The default slot holds the scroll child components |
pullDownIcon ⚠️ | Custom pull down icon |
pullDownLabel ⚠️ | Custom pull down label |
pullUpIcon ⚠️ | Custom pull up icon |
pullUpLabel ⚠️ | Custom pull up label |
⚠️: Applicable only for the
<ui-scroll-probe>
0.5.2 (2019.10.22)
pullUp
and pullDown
actions
pullDownAction(refresh: Function)
pullUpAction(refresh: Function)
<ui-scroll ref="iScroll" :pullUpAction="pullUpAction"></ui-scroll>
export default {
methods: {
firstLoaded() {
// Update here your DOM
this.$refs.iScroll.refresh();
},
pullUpAction(refresh) {
// Update here your DOM
setTimeout(function() {
refresh();
}, 0);
}
}
};
refreshTimeout
FAQs
Smooth scrolling for Vue.js
The npm package balm-scroll receives a total of 5 weekly downloads. As such, balm-scroll popularity was classified as not popular.
We found that balm-scroll demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.