jaredlt / add_to_calendar

A ruby gem to generate 'Add To Calendar' URLs for Android, Apple, Google, Hey, Office 365, Outlook, Outlook.com and Yahoo calendars
MIT License
87 stars 15 forks source link

Add Widget class to produce button/widget(s) to embed directly in views #6

Open jaredlt opened 4 years ago

jaredlt commented 4 years ago

Eg.

@cal_widget = AddToCalendar::Widget.new(event_attributes)

# view.html.erb
<%= @cal_widget.button %> # or link or whatever

design one first inspired eg. https://www.addevent.com/products/add-to-calendar-button

but think about how to handle different styling etc.

Have pre-made versions for bootstrap, bulma etc?

jaredlt commented 4 years ago