0👍
Take a look at "ion-content" component, https://ionicframework.com/docs/api/content
It has many methods and events for scrolling.
- [Vuejs]-Vuejs Certain Components Not Building
- [Vuejs]-Vue js how to animate component display from top to bottom
0👍
You only need to call the method .scrollToBottom()
on the <ion-content>
element.
You can use the following approach, refering the ion-content
with a ref and calling the method scrollToBottom bellow:
<template>
<ion-content ref="content">
</ion-content>
</template>
export default defineComponent({
methods: {
scrollToBottom(){
this.$refs['content'].scrollToBottom()
}
},
});
</script>
- [Vuejs]-I am gettting an error while trying to implement a basic example of vue-echarts library
- [Vuejs]-IOS 14 + vuejs PWA opens camera app instead of displaying video in HTML
Source:stackexchange.com