0.1.12 • Published 2 years ago

chronocraft-datepicker-vue v0.1.12

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Chronocraft DatePicker - A VueJS 3.0 Efficient DatePicker Component

The Chronocraft DatePicker is a flexible datepicker component created for Vue3

Features

  • Vuejs 3.0 Based Datepicker
  • Single Date Selection
  • Date Range Selection

alt text

Usage of Datepicker

Using the Library as a Plugin

import { ChronoCraftDatePicker } from 'chronocraft-datepicker-vue';
    ...
app.use(ChronoCraftDatePicker)

Using seperate components of the library inside you project

When you want to import a specific component from the library into a dedicated place inside your code

import { DatePicker } from 'chronocraft-datepicker-vue';
...
components:{
DatePicker
}

Example of Component

<DatePicker :rangepicker="false" :showselecteddate="true" style="margin: 0px auto;">
</DatePicker>

Example using Input Field Slot

<DatePicker :rangepicker="true" :showselecteddate="true" style="margin: 0px auto;" @on-date-selected="OnDateSelected">
    <template v-slot:inputfield="slotProps">
        <span class="material-icons-outlined" style="cursor: pointer;">date_range</span>
    </template>
</DatePicker>

Component properties

NameTypeDescription
showselecteddateBooleanShow or Hides the Selected Day or Days inside the Picker
dateformatStringDefines the output string format writen inside the input component
rangepickerBooleanEnables selection of a date range (from A date to B date)
autohideBooleanTurns on or off the auto hidding in the datepicker popup
@on-date-selectedEvent FunctionEvent fired when the user selects a date or rnage of dates

Component slots

NamehaspropsDescription
inputfieldnoOverrides the datepicker's input field and custom elements can be entered like a button or icon
0.1.12

2 years ago

0.1.11

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago