Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

angular-addtocalendar

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-addtocalendar

AngularJS directive for adding events to calendar apps

  • 1.3.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
125
decreased by-19.87%
Maintainers
1
Weekly downloads
 
Created
Source

angular-addtocalendar

v1.3.5

An Angular.js component for adding an event to calendar apps. It supports .ics files for iCalendar and Outlook and also supports Google Calendar, Yahoo! Calendar and Outlook Online.

Coverage Status Build Status npm version License dependency Status

Installation

  1. Add source

    bower:

    bower install angular-addtocalendar --save
    

    npm:

    npm i angular-addtocalendar --save
    
  2. If you're using webpack, you need to require the module.

    require('angular-addtocalendar');
    

    Alternatively:

    import 'angular-addtocalendar';
    
  3. Inject the dependency angular-atc into your app:

    angular
      .module('myApp', [
        'angular-atc',
        ...
      ]);
    

    Note: If you're using a version earlier than 1.3.0, the module name is jshor.angular-addtocalendar.

Demo

For a demo, please click here.

Example

  <addtocalendar
    start-date="20190704T190000"
    end-date="20190704T210000"
    title="Happy Hour"
    location="The Bar, New York, NY"
    description="Let's blow off some steam from our weekly deployments to enjoy a tall cold one!"
    recurrence-frequency="WEEKLY"
    recurrence-interval="2"
    recurrence-until="20190904T210000">
  </addtocalendar>

Attributes

AttributeDescriptionTypeRequired?Example
titleTitle of the eventStringYesHappy Hour
descriptionSummary of the eventStringYesCome enjoy drinks!
locationEvent locationStringYesThe Bar, NYC
start-dateDate that the event starts onString date`Yes20180704T190000
end-dateDate that the event ends on. Omit for an all-day eventString date`No20180704T210000
recurrence-frequencyEvent frequency; DAILY, WEEKLY, MONTHLY, YEARLYEnumNoDAILY
recurrence-intervalTime between recurrencesIntegerNo2
recurrence-countNumber of times the event should repeatIntegerNo4
recurrence-endDate when the last recurrence should occurString dateYes*20190904T210000
recurrence-weekstartDay that the week starts on (default: SU); SU MO, TU, WE, TH, FR, SAEnumNoSU
recurrence-weekdaysComma-separated days of the week that the event occurs on; SU MO, TU, WE, TH, FR, SAEnumNoTU,TH,SA
recurrence-monthdaysComma-separated list of monthdaysString of numbersNo2,4,6,8
btn-textText to be displayed on the buttonStringNoAdd to calendar
use-bootstrapUse Bootstrap classesBooleanNotrue

Custom Styling

angular-addtocalendar is designed to be compatible with Bootstrap but also comes bundled with both a custom stylesheet and extendable Sass styles. The markup selector convention is identical to the Bootstrap dropdown markup.

Using Bootstrap

If you already have Bootstrap set up in your project, just pass in use-bootstrap="true" as a parameter to the <angular-addtocalendar /> component.

Using the default styling

If you're using Sass, you can import the default Sass stylesheet like so:

@import '~/angular-addtocalendar/addtocalendar.scss';

Or if you want to reference the compiled stylesheet directly:

<link rel="stylesheet" href="node_modules/angular-addtocalendar/styles.css" />

Extending the existing styles

Assuming you're using Sass, import the stylesheet as noted above. Otherwise, copy the compiled CSS bundled with the project and modify styles as such.

Namespacing

The css namespace (parent class) for this module is atc-btn-group (assuming use-bootstrap is false).

Bugs

Please report all bugs here.

Changelog

Available here.

Keywords

FAQs

Package last updated on 10 Jun 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc