All threads / simple_calendar gem AJAX Drop-down list for Month/Years

Ask A Question

Notifications

You’re not receiving notifications from this thread.

simple_calendar gem AJAX Drop-down list for Month/Years

Darion Wood asked in General

Greetings Chris,
I've been using simple_calendar gem for a while -- its a wonderful solution. I was wondering...Can you implement a dropdown list for the months/years for the calendar itself. I think it would be easier to navigate if it included a range for months/years. It could simply add 1+ year if for instance we're in 2019 and 2020 is coming up.

Best,
DW

Sure could. Just install the views, swap the header code with your dropdown, have it navigate after you select with Javascript and that should be good to go.

Alright, I'll give it a test run and post code if any isues surface. Best

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 45,185+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2021 GoRails, LLC. All rights reserved.