• Stars
    star
    134
  • Rank 270,008 (Top 6 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 7 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Vue.js component that provides "Add to Calendar" functionality, works with Vue 2.X

Vue Add To Calendar

Release Build Status Coverage Status Downloads License vue2

A Vue.js renderless component providing 'Add to Calendar' functionality

Less than 1kb gzipped


Demo

What is a renderless component?

Renderless components give you the highest possible control over your markup and styling. This means that vue-add-to-calendar ship with minimal HTML and no CSS to let you adapt the look and feel of the components to your needs. You can learn more about renderless components in this blog article by @adamwathan.

Include support for:

  • Google calendar
  • Microsoft live calendar
  • Office 365 calendar

Installation

# Yarn
yarn add vue-add-to-calendar

# NPM
npm install --save vue-add-to-calendar

# Bower
bower install vue-add-to-calendar

Usage

Loading the library

Browserify / Webpack
var AddToCalendar = require('vue-add-to-calendar');

Vue.use(AddToCalendar);
HTML
<script src="/dist/vue-add-to-calendar.min.js"></script>

Using the add to calendar component

<add-to-calendar title="VueConf" 
                 location="WROCŁAW, POLAND" 
                 :start="new Date()"
                 :end="new Date((new Date).setDate((new Date).getDate() + 1))"
                 details="The first Official Vue.js Conference in the world!" 
                 inline-template>
  <div>
  
    <google-calendar id="google-calendar">
      <i class="fa fa-google"></i> Add to Google calendar
    </google-calendar>
    
    <microsoft-calendar id="microsoft-calendar">
      <i class="fa fa-windows"></i> Add to Microsoft live calendar
    </microsoft-calendar>
    
    <office365-calendar id="office365-calendar">
      <i class="fa fa-windows"></i> Add to Office365 outlook calendar
    </office365-calendar>
  </div>
</add-to-calendar>

Available properties

List of available props to use in the component:

Prop Data Type Default Description
title String Event title
details String Event details
location String Event location
start Date Event start date
end Date Event end date

Feature request

Feel free to open an issue to ask for a new calendar support.

Changelog

Detailed changes for each release can be found in CHANGELOG.md.

Issues

Please make sure to read the Issue Reporting Checklist before opening an issue. Issues not conforming to the guidelines may be closed immediately.

Contribution

Please make sure to read the Contributing Guide before making a pull request.

License

MIT

More Repositories

1

vue-social-sharing

A renderless Vue.js component for sharing links to social networks, compatible with SSR
JavaScript
1,385
star
2

laravel-botscout

Block malicious scripts using botscout.com protection for your laravel app
PHP
63
star
3

Walrus

Walrus Framework - Certainly not that big whatever factory.
PHP
46
star
4

nova-algolia-card

A Laravel Nova card for Algolia
PHP
22
star
5

flysystem-onedrive

A flysystem driver for OneDrive that uses the Microsoft Graph API
PHP
19
star
6

CrypTalker-Server

Encrypted Android mobile chat application backend (Laravel)
PHP
12
star
7

Cryptalker-android

Encrypted Android mobile chat application
Java
9
star
8

nova-sendgrid-card

A Laravel Nova card for Sendgrid
PHP
6
star
9

NPG

NPG is a small tool written in bash that help you generate and manage web projects that use NGINX.
Shell
5
star
10

botscout-client

A PHP client library for botscout.com
PHP
5
star
11

lari18n

Laravel translation made easy
PHP
2
star
12

laravel-transcribe

A simple language files translation manager in your artisan console.
PHP
2
star
13

spacy-gpu

Docker image to run spacy with GPU enabled
Dockerfile
2
star
14

Tap

A titanium game inspired by the switch android game.
JavaScript
1
star
15

WalrusDocs

Walrus Framework documentation website
PHP
1
star
16

.dotfiles

Shell
1
star
17

advent-of-code-2022

1
star
18

laravel-legacy-translator

A laravel package to translate a legacy app in no time
PHP
1
star
19

running-milestone

My running milestone website (http://run.nicolas-beauvais.com)
PHP
1
star
20

blog

Personal blog
Stylus
1
star
21

nova-external-services

A Laravel Nova tool that display shortcuts to your company's external services
PHP
1
star