We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In the docs says you can listen to Perfect Scrollbar custom events and it refers to the PS documentation where it shows:
container.addEventListener('ps-scroll-x, ...)
In my app I'm trying this but with no success:
<scroll-bar ref="scroll"> ... </scroll-bar> // error: addEventListener is not a function mounted () { this.$refs.scroll.addEventListenter('ps-scroll-x', () => { consolellog(...) }) } // error: nothing happens mounted () { this.$refs.scroll.$el.addEventListenter('ps-scroll-x', () => { console.log(...) }) }
I am obviously missing something. How can I listen to the PS events?
Thanks in advance.
The text was updated successfully, but these errors were encountered:
@hfalucas you can use vuejs directive to listening events on: https://vuejs.org/v2/guide/events.html just add @ps-scroll-x to your scrollbar element
<scroll-bar ref="scroll" @ps-scroll-x="someMethodToHandle">
and then
methods: { someMethodToHandle() { console.log('scroll x') } }
Let's see example here: https://codesandbox.io/s/00w2rk5k7v
Sorry, something went wrong.
I did try that before opening the issue but I guess "scoll" was not really a word -.-
Thank you @mercs600 for such quick answer and helpful examples.
No branches or pull requests
In the docs says you can listen to Perfect Scrollbar custom events and it refers to the PS documentation where it shows:
In my app I'm trying this but with no success:
I am obviously missing something. How can I listen to the PS events?
Thanks in advance.
The text was updated successfully, but these errors were encountered: