set page programmatically
See original GitHub issueFirst 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:
- Created 6 years ago
- Comments:5
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Problem was somewhere else. the goToPage method doesn’t work, but the currentPage does.
Looking at https://github.com/SSENSE/vue-carousel/pull/108, ken_mills’s answer worked for me.