Skip to content
New issue

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

Place bar above the calendar with the name of the month with next and previous #511

Open
stevenjose opened this issue Mar 18, 2020 · 3 comments

Comments

@stevenjose
Copy link

Greetings could you help me how can I place a bar above the calendar with the name of the Month

@twinssbc
Copy link
Owner

@stevenjose How does your HTML code look like. You should be able to simply add some DOM element between your month header and calendar element.

@kartiksolanki
Copy link

For the name of the month, you can inject angular variable "currentMonth" from onViewTitleChanged method. For next and previous, I am still looking for a solution. How do i get the variables or what variables are for next and previous?

@kartiksolanki
Copy link

I found the solution for next and previous. Use the below functions:

nextMonth(){
var mySwiper = document.querySelector('.swiper-container')['swiper'];
mySwiper.slideNext();
}

previousMonth(){
var mySwiper = document.querySelector('.swiper-container')['swiper'];
mySwiper.slidePrev();
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants