All Projects → Trekels → vue2-calendar

Trekels / vue2-calendar

Licence: other
A lightweight calendar component for Vue2

Programming Languages

javascript
184084 projects - #8 most used programming language
Vue
7211 projects
HTML
75241 projects

Projects that are alternatives of or similar to vue2-calendar

basic-transport-info-app
A progressive web app to show direct & indirect buses / transport between two places / cities / stops .Show next schedule & travel duration. Algorithm to calculate indirect buses on basis of their schedule time. Voice search . Locate nearest city/stop by gps. Bus timetable.
Stars: ✭ 12 (-77.78%)
Mutual labels:  vuejs2
yoma
一个小而美的低代码全栈开发平台,一键生成后端api接口+前端页面代码+在线接口文档,节省50%的前后端开发的工作量。基于springboot +mybatis+spring security+vue 技术栈
Stars: ✭ 137 (+153.7%)
Mutual labels:  vuejs2
myblog
前端部分使用vue2.0-vuex-webpack-md编辑器,后端使用golang的beego框架的个人博客网站。代码中实际分为2个工程,beego和vue工程。部署将webpack打包后文件放在beego工程中。前后端路由分离。
Stars: ✭ 30 (-44.44%)
Mutual labels:  vuejs2
v-lazy-img
simplistic vue.js directive for image lazy loading
Stars: ✭ 25 (-53.7%)
Mutual labels:  vuejs2
notes
📗 ✂️ Notes app written in Vue.js
Stars: ✭ 16 (-70.37%)
Mutual labels:  vuejs2
vue-jekyll
This Repo is a bare-bones template for building static sites that leverage a client-side JS framework for dynamic functionality.
Stars: ✭ 84 (+55.56%)
Mutual labels:  vuejs2
vue-startup
A template with webpack 4 + vuejs 2 + + babel 7 setup for projects startup
Stars: ✭ 44 (-18.52%)
Mutual labels:  vuejs2
munhasir
Sample RESTful single page web app with Go, MongoDB and VueJS. A platform for keeping diaries for those who are cautious(or paranoid).
Stars: ✭ 24 (-55.56%)
Mutual labels:  vuejs2
shopify-storefront-vue-apollo
Vue.js/Apollo version of Shopify storefront-api-examples in a Laravel project
Stars: ✭ 30 (-44.44%)
Mutual labels:  vuejs2
skr
🏆 Blog with manager (vue&ssr)
Stars: ✭ 16 (-70.37%)
Mutual labels:  vuejs2
yacalendar
Yet another calendar component for Qt Quick Controls 2
Stars: ✭ 23 (-57.41%)
Mutual labels:  calendar-component
DncVueSample
A Vue.js + iview static html admin template project.
Stars: ✭ 17 (-68.52%)
Mutual labels:  vuejs2
quiplash
Quiplash replacement
Stars: ✭ 25 (-53.7%)
Mutual labels:  vuejs2
social-network
Social Network made with Laravel + Vue + Love implementing TDD and Laravel Dusk tests
Stars: ✭ 25 (-53.7%)
Mutual labels:  vuejs2
you-can-quit
A tool to support your progress in quitting whatever your bad habit is.
Stars: ✭ 56 (+3.7%)
Mutual labels:  vuejs2
react-google-calendar
React Calendar Component that displays data from Google Calendar
Stars: ✭ 64 (+18.52%)
Mutual labels:  calendar-component
vue-notification-bell
Vue.js notification bell component.
Stars: ✭ 64 (+18.52%)
Mutual labels:  vuejs2
vue-sauce
"View source" directive for Vue
Stars: ✭ 90 (+66.67%)
Mutual labels:  vuejs2
gpkeditor
markdown editor with peg.js
Stars: ✭ 15 (-72.22%)
Mutual labels:  vuejs2
elekid
Resolver for React's Server Side Render on Module, ReactElement or Electron
Stars: ✭ 21 (-61.11%)
Mutual labels:  vuejs2

vue2-calendar

npm npm

Check out the demo here on Code Sandbox: Edit Vue Template

Introduction

This is a simple and small event calendar component for Vue js. It is very lightweight and does not depend on external libraries apart from Vue2 obviously.

Table of contents

Installation

Add the package to your project.

 npm install vue2-simple-calendar
 
 yarn add vue2-simple-calendar

require or import the component in your project index file (or where you instantiate Vue) and install as shown below. You can add a configuration object to tweak the calendar to your needs but it is not required.

import vueCalendar from 'vue2-simple-calendar';

Vue.use(vueCalendar, {
  // configuration goes here.
});

Now all is in place to use the component.

Usage

The component is used as shown below. Page specific config and data is passed through properties, the app level config such as locale, firstDay, ... can be configured on initialization through the config object. All events can be bound to the parent but are available through the complete application through an event bus.

<template>
  <vue-calendar
      :show-limit="3"
      :events="events"
      :disable="disabledDays"
      :highlight="highlightDays"

      @show-all="showAll"
      @day-clicked="dayClicked"
      @event-clicked="eventClicked"
      @month-changed="monthChanged"
  ></vue-calendar>
</template>

<script>
  export default {
    name: 'your-component',
    methods: {
      showAll(events) {
        // Do something...
      },
      dayClicked(day) {
        // Do something...
      },
      eventClicked(event) {
        // Do something...
      },
      monthChanged(start, end) {
        // Do something...
      }
    },
    created() {
      this.$calendar.eventBus.$on('show-all', events => showAll(events));
      this.$calendar.eventBus.$on('day-clicked', day =>  dayClicked(day));
      this.$calendar.eventBus.$on('event-clicked', event => eventClicked(event));
      this.$calendar.eventBus.$on('month-changed', (start, end) => monthChanged(start, end));
    }
  }
</script>
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].