New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@craydel/craydel-date-range-picker

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@craydel/craydel-date-range-picker

A custom date range picker component for Craydel based on the vue2-datepicker.

latest
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

CraydelDateRangePicker

Installation

Get the latest version by NPM:

$ npm i @craydel/craydel-date-range-picker

Register Plugin

If you use the plugin API, the component will be registered as a global component just like when including it with the script tag, but you won't need to re-register it through the components property in your own components.

Create the plugin file e.g craydel-components.js file.

// craydel-components.js
import Vue from 'vue'
import CraydelDateRangePicker from '@craydel/craydel-date-range-picker/src/CraydelDateRangePicker.vue'

const Components = {
  CraydelDateRangePicker,
};

Object.keys(Components).forEach(name => {
  Vue.component(name, Components[name]);
});

export default Components;

Next reference the plugin file in your nuxt.config.js

// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
plugins: [
  '~/plugins/craydel-components.js'
]

Props

NameTypeDefaultDescription
idstringrandom IDSets the DOM id on the component.
placeholderstring'Select range'Sets the component's placeholder text.
hintstringundefinedHint text.
append-to-bodybooleantrueAppends the popup to body.
defaultValuearrayundefinedSets the default date range.

Events

NameDescription
changeChange event is emitted only when both [from, to] are selected.

Usage

An example showing a date range picker.


<craydel-date-range-picker></craydel-date-range-picker>

Keywords

vuetify

FAQs

Package last updated on 27 Sep 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