Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
angular-addtocalendar
Advanced tools
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.
Enjoy!
bower:
bower install angular-addtocalendar
npm:
npm install angular-addtocalendar
You can also download it directly.
Inject the dependency jshor.angular-addtocalendar
into your app:
angular
.module('myApp', [
'jshor.angular-addtocalendar',
'ui.bootstrap',
...
]);
For a demo, please click here.
<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>
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 calendar | No |
uib-dropdown | Whether to use ui-bootstrap dropdown | null Default Add to calendar | null | No |
All browsers support adding to Yahoo!, Microsoft, and Google calendars. Below is the current support for downloading .ics files for Outlook and iCalendar.
Browser | .ics Support |
---|---|
Internet Explorer | 9.0+ |
Edge | Yes |
Safari | No |
Firefox | 20.0+ |
Opera | 15.0+ |
Chrome | 14.0+ |
Android | 4.4+ |
Please report all bugs here.
Available here.
FAQs
AngularJS directive for adding events to calendar apps
The npm package angular-addtocalendar receives a total of 96 weekly downloads. As such, angular-addtocalendar popularity was classified as not popular.
We found that angular-addtocalendar demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.