question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

set page programmatically

See original GitHub issue

First of all really nice component! Though I’m trying to set the page number programmatically, which it seems there is no straight forward way of doing this? I’ve tried the following:

this.$refs.carousel.currentPage = this.selectedTeamId; this.$refs.carousel.goToPage(this.selectedTeamId);

In the mounted life-cycle hook of the page where I use the carousel, but no luck. Doing anything wrong? Or have I overlooked something? Thanks in advance & keep up the good work!

PS I noted #77 and #108 but don’t seems it’s implemented in the npm module?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
jclaessens97commented, Jan 19, 2018

Problem was somewhere else. the goToPage method doesn’t work, but the currentPage does.

0reactions
DanielDK100commented, Jul 10, 2018

Looking at https://github.com/SSENSE/vue-carousel/pull/108, ken_mills’s answer worked for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Programmatically Change Page #885 - mbrn/material-table
Is there any way to programmatically change the page, or set the current page asynchronously? When I programmatically set initialPage, ...
Read more >
Specifying the Master Page Programmatically (C#)
Looks at setting the content page's master page programmatically via the PreInit event handler. (C#)
Read more >
ViewPager set current page programmatically - Stack Overflow
By using handler we can make this work because it set the pagers current position after the onItemSelected event fired.
Read more >
Working with Pages Programmatically - Documentation
Overview · Setting Attributes on an Existing Page · Updating a Page's Name, Description, Posting Date, or Author · Adding a New Page...
Read more >
How to set Page template to Page Programmatically - Forums
I am using liferay DXP 7.3, here i have created one page template but i am not getting how to provide that page...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found