Skip to content

Latest commit

 

History

History
49 lines (36 loc) · 4.3 KB

File metadata and controls

49 lines (36 loc) · 4.3 KB

angular-addtocalendar Build Status Dependency Status

v0.0.5

An AngularJS directive for adding an event to calendar apps. It supports .ics files for iCalendar and Outlook and also supports Google Calendar, Yahoo! Calendar and Microsoft Calendar. It makes use of ics.js by Travis Krause.

Enjoy!

Installation

bower install angular-strap-addtocalendar

Example

<addtocalendar
	start-date="20150704T190000"
	end-date="20150704T210000"
	title="Fourth of July Fireworks"
	location="Battery Park City, New York, NY"
	class-name="btn btn-sm btn-default dropdown-toggle"
	description="Celebrate the independence of the United States with fireworks in one of the greatest cities in the world."
	btn-text="Add to calendar"
></addtocalendar>


Or

<addtocalendarstrap
	start-date="20150704T190000"
	end-date="20150704T210000"
	title="Fourth of July Fireworks"
	location="Battery Park City, New York, NY"
	class-name="btn btn-sm btn-default dropdown-toggle"
	description="Celebrate the independence of the United States with fireworks in one of the greatest cities in the world."
	btn-text="Add to calendar"
></addtocalendarstrap>

Attributes

Attribute Description Format Example Required
title Name of the event. Plain text Fourth of July Fireworks Yes
description Description of the event. Plain text. Default nil. Celebrate the independence of the United States with fireworks in one of the greatest cities in the world. No
location Location of the event. Plain text Battery Park City, New York, NY Yes
start-date The timestamp of when the event begins. Date string in format YYYYMMDDToHHMMSS 20150704T190000 Yes
end-date The timestamp of when the event ends. Date string in format YYYYMMDDToHHMMSS 20150704T210000 Yes
class-name The bootstrap class for the dropdown button (more info) Bootstrap class/plain text. Default btn btn-sm btn-default dropdown-toggle btn btn-sm btn-default dropdown-toggle No
btn-text Text for the button to display Plain text. Default Add to calendar Add to your calendar now! No