Gathering detailed insights and metrics for vue-persian-datetime-picker
Gathering detailed insights and metrics for vue-persian-datetime-picker
Gathering detailed insights and metrics for vue-persian-datetime-picker
Gathering detailed insights and metrics for vue-persian-datetime-picker
vue3-persian-datetime-picker
A vue plugin to select jalali date and time
react-native-modal-datetime-picker
A react-native datetime-picker for Android and iOS
flatpickr
A lightweight, powerful javascript datetime picker
react-native-date-picker
A datetime picker for React Native. In-modal or inlined. Supports Android and iOS.
npm install vue-persian-datetime-picker
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
588 Stars
293 Commits
78 Forks
8 Watching
3 Branches
6 Contributors
Updated on 22 Nov 2024
Vue (65.67%)
JavaScript (18.27%)
SCSS (15.82%)
Shell (0.25%)
Cumulative downloads
Total Downloads
Last day
-17.2%
173
Compared to previous day
Last week
-6.3%
1,047
Compared to previous week
Last month
10.3%
4,565
Compared to previous month
Last year
-30.3%
53,157
Compared to previous year
1
19
A vue plugin to select jalali date and time
See documentation and demo at vue-persian-datetime-picker
If you are using vuejs 3, please refer to this repository.
1<script src="https://cdn.jsdelivr.net/npm/vue"></script> 2<script src="https://cdn.jsdelivr.net/npm/moment"></script> 3<script src="https://cdn.jsdelivr.net/npm/moment-jalaali@0.9.2/build/moment-jalaali.js"></script> 4<script src="/dist/vue-persian-datetime-picker.umd.min.js"></script> 5<div id="app"> 6 <date-picker v-model="date"></date-picker> 7</div> 8<script> 9var app = new Vue({ 10 el: '#app', 11 data: { 12 date: '1397/02/02' 13 }, 14 components: { 15 DatePicker: VuePersianDatetimePicker 16 } 17}); 18</script>
1npm install vue-persian-datetime-picker --save
Configuration for moment to ignore loading locales
1// webpack.config.js: 2module.exports.plugins = [ 3 //... 4 new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/) 5 //... 6] 7 8// vue.config.js: 9module.exports = { 10 //.. 11 configureWebpack: { 12 plugins: [new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/)] 13 }, 14 //... 15}
1// main.js 2//... 3import VuePersianDatetimePicker from 'vue-persian-datetime-picker'; 4Vue.component('date-picker', VuePersianDatetimePicker); 5//...
Or in component
1<template> 2 <div> 3 <date-picker v-model="date"></date-picker> 4 </div> 5</template> 6 7<script> 8import VuePersianDatetimePicker from 'vue-persian-datetime-picker' 9export default { 10 data(){ 11 return { 12 date: '' 13 } 14 }, 15 components: { 16 datePicker: VuePersianDatetimePicker 17 } 18} 19</script>
1// main.js 2import VuePersianDatetimePicker from 'vue-persian-datetime-picker'; 3Vue.use(VuePersianDatetimePicker, { 4 name: 'custom-date-picker', 5 props: { 6 inputFormat: 'YYYY-MM-DD HH:mm', 7 format: 'jYYYY-jMM-jDD HH:mm', 8 editable: false, 9 inputClass: 'form-control my-custom-class-name', 10 placeholder: 'Please select a date', 11 altFormat: 'YYYY-MM-DD HH:mm', 12 color: '#00acc1', 13 autoSubmit: false, 14 //... 15 //... And whatever you want to set as default 16 //... 17 } 18});
Then use in component
1<custom-date-picker v-model="date" />
This project is licensed under the MIT License
custom-input
input-attrs
@next-month
and @prev-month
events@year-change
and @month-change
eventsauto-submit
and multiple
togetherdate
only)escape
key, fixes #141date
only)compat-time
to display time on the front page (in datetime mode)convert-numbers
prop that converts numbers to persian in fa locale: <date-picker convert-numbers />
<date-picker type="year-month" />
. fixed #70<date-picker type="datetime" :timezone="true" />
. fixed #33<date-picker locale="en" />
<date-picker type="time" :jumpMinute="5" :roundMinute="true" />
<date-picker :clearable="true" />
<date-picker :inline="true" />
tab
key press problemmin-max
changesNo vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 1/29 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
81 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More