vue-backtotop icon indicating copy to clipboard operation
vue-backtotop copied to clipboard

Do <back-to-top></back-to-top> tag do not allow @click="" or running any method?

Open KaitoXion opened this issue 5 years ago • 0 comments

tag does not seems to allow @click="" or running any method.

I suppose it's purposefully made this way? I'm using vue.js + Visual Code Studio.

<back-to-top class="btn btn-to-top" bottom="50px" right="50px" visibleoffset="1700" @click="whateverMethod">
        <i class="fa fa-chevron-up"></i>
</back-to-top>

I don't seems to be able to get any value from the button tag, aside from the tag. well; is true that I could somehow add a div or a square big enough as a work around, I think. Am a newbie; so ya.

Just thought of confirming.

KaitoXion avatar Jun 11 '19 10:06 KaitoXion