Skip to content

How to use lori Public API functions within the vue component #3

@Jones-S

Description

@Jones-S

Hi there. I am currentyl trying out your nice vue slider based on lori.
Lori provides some functions like:
slideTo() returnIndex and so on. (http://meandmax.github.io/lory/ > chapter public API)

How would I use them within my vue template (JSX).
I am using a slider with variable width elements and the active element is ~the third of 5 elements. And somehow my infinite option messes up with that. (my active element after page load is not in view). So I thought I could call an inital slideTo to set it to the wanted position?...

thanks for some help here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions