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

github.com/parthfaladu/vue-jquery-calendar

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/parthfaladu/vue-jquery-calendar

  • v0.0.0-20200920050836-879b7a07d90e
  • Source
  • Go
  • Socket score

Version published
Created
Source

vue-jquery-calendar

npm version

vue-jquery-calendar is wrapper vue package of jquery ui datepicker

Installation

npm install --save vue-jquery-calendar

Or using yarn

yarn add vue-jquery-calendar -dev

For Installing plugin import vue-jquery-calendar in your component page.

//foo.vue
import VueJqueryCalendar from 'vue-jquery-calendar';
export default {
  components: {
    VueJqueryCalendar,
  },
}

Note

Please note that this package depends on jQuery and jquery-ui, but you won't need to add it to your project manually, vue-jquery-calendar will handle this for you automatically if this dependencies are not detected.

CSS

For vue-jquery-calendar appearance import jquery-ui css in App.vue main file

<style>
@import '~jquery-ui-dist/jquery-ui.css';
</style>

Example App

try out this Code Sandbox

Basic Usage

You can pass an array of fullclendar objects through the props

<VueJqueryCalendar v-model="date" :class-name="'form-control'" date-format="dd-mm-yy" :readonly="true" />
...
<script>
import moment from 'moment';
import VueJqueryCalendar from 'vue-jquery-calendar';
...
  components: {
	VueJqueryCalendar,
  },
  data() {
    return {
        date: moment().subtract(30, "days").format("DD-MM-YYYY"),
    }
  }
...
</script>

Props

NameTypeDefaultDescription
valueStringnullValue of the input DOM
showButtonPanelBooleanfalseTo display a button pane underneath the calendar
changeMonthBooleanfalseThe month should be rendered as a dropdown instead of text
changeYearBooleanfalseThe year should be rendered as a dropdown instead of text
numberOfMonthsNumber1The number of months to display in a single row
dateFormatString'dd/mm/yy'The format for parsed and displayed dates
readonlyBooleanfalseCalendar input field set as read-only mode
classNameStringnullCalendar input class name set

Events

NameDescription
changeget value on change date

FAQs

Package last updated on 20 Sep 2020

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