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

v-calendar

Package Overview
Dependencies
Maintainers
1
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

v-calendar

A clean and extendable plugin for building simple attributed calendars in Vue.js.

  • 2.4.2
  • latest
  • v2-latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
221K
increased by8.42%
Maintainers
1
Weekly downloads
 
Created

What is v-calendar?

v-calendar is a versatile and customizable calendar component for Vue.js applications. It allows developers to easily integrate date pickers, date ranges, and event calendars into their projects.

What are v-calendar's main functionalities?

Date Picker

The date picker allows users to select a single date. The selected date is bound to the `selectedDate` data property.

<template>
  <v-date-picker v-model="selectedDate"></v-date-picker>
</template>

<script>
export default {
  data() {
    return {
      selectedDate: null
    };
  }
};
</script>

Date Range Picker

The date range picker allows users to select a range of dates. The selected range is bound to the `dateRange` data property, which contains `start` and `end` dates.

<template>
  <v-date-picker v-model="dateRange" is-range></v-date-picker>
</template>

<script>
export default {
  data() {
    return {
      dateRange: { start: null, end: null }
    };
  }
};
</script>

Event Calendar

The event calendar allows users to display events on specific dates. The `events` data property contains an array of event objects, each with a `key`, `highlight` style, and `dates`.

<template>
  <v-calendar :attributes="events"></v-calendar>
</template>

<script>
export default {
  data() {
    return {
      events: [
        { key: 'today', highlight: { backgroundColor: '#ff8080' }, dates: new Date() },
        { key: 'event1', highlight: { backgroundColor: '#80ff80' }, dates: new Date(new Date().setDate(new Date().getDate() + 1)) }
      ]
    };
  }
};
</script>

Other packages similar to v-calendar

Keywords

FAQs

Package last updated on 13 Oct 2023

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