npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

vuejs-fullcalendar

v1.0.12

Published

pure vue-based fullcalendar, no jquery moment required

Downloads

61

Readme

##vuejs-fullcalendar

npm npm

So as it's called. This is a fullCalendar component based on vue.js . No Jquery or fullCalendar.js required. Currently, It only supports month view. I will use fc stands for vue-fullcalendar in following words.

Simple Live Demo

demo.gif

install

By NPM

npm install vuejs-fullcalendar --save

or download code and include it

<script src='dist/vue-fulcalendar.min.js'>

Usage

Register component globally

// Your entry index.js
import Vue from 'vue'
import App from './App'

import fullCalendar from 'vue-fullcalendar'

Vue.component('full-calendar', fullCalendar)

new Vue({
	el : 'body',
	components : {
		App
	}
})

or register locally in your .vue file

Example

<full-calendar :events="fcEvents" lang="en"></full-calendar>
var demoEvents = [
	{
      title : 'Sunny Out of Office',
      start : '2016-08-25',
      end : '2017-07-27'
    }
]
export default {
  data () {
	return {
	  fcEvents : demoEvents
	}
  },
  components : {
	'full-calendar': require('vuejs-fullcalendar')	
  }
}

A sample screenshot is here, Yeah you see the calendar

Docs

props

  1. events : Events will be displayed on the calendar

    events = [
      {
        title     :  'event1',
        start     : '2016-07-01',
        YOUR_DATA : {}
      },
      {
        title     : 'event2',
        start     : '2016-07-02',
        end       : '2016-07-03',
        YOUR_DATA : {}
      }
    ]         
    • title is the title of this event, will be displayed on calendar

    • start is the start day of this event

    • end is the end day of this event

    • YOUR_DATA You can define as many data you want as possible

  2. lang : langague of things like monthNames weekNames and titleFormat

    export default {
      en : {
        weekNames :  ['Sun', 'Mon','Tue','Wed','Thu','Fri','Sat'],
        monthNames : ['January','February','March','April','May','June','July','August','September','October','November','December'],
        titleFormat : 'MM/yyyy'
      },
      zh : {
        weekNames : ['周一','周二','周三','周四','周五','周六','周日'],
        monthNames : ['1月','2月','3月','4月','5月','6月','7月','8月','9月','11月','12月'],
        titleFormat : 'yyyy年MM月'
      }
    }
    • option : zh | en

    • default : zh

  3. monthNames

  4. weekNames

  5. titleFormat

events

fc will dispatch some events out.

  1. changeMonth : Every time you click arrow to next/last month, fc will dispatch changeMonth

    this.$dispatch('changeMonth', start, end, current)
    • start is the first day of current monthView

    • end is the last day of current monthView

    • current is the first day of current month

  2. eventClick : Every time you click a event, fc will dispatch eventClick

    this.$dispatch('eventClick', event, jsEvent, pos)
    • event is an Event object hold the event's information

    • jsEvent holds the native javascript event

    • pos is the relative coordinates of fc

  3. dayClick : fc dispatch it when you click a day slot.

    this.$dispatch('eventClick', day, jsEvent)
    • day is a Date Object of the day you click

    • jsEvent holds the native javascript event

###END