Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
vue-drumroll-datetime-picker
Advanced tools
Readme
vue-drumroll-datetime-picker
is a wheel style datetime picker.
There is also a date-only and time-only picker.
There is a fixed format and a dialog format that can be installed directly on the screen, and it also supports responsive support. It is an easy-to-use and highly flexible library with plenty of customization such as date order and label editing. Furthermore, the file size is as light as 50kb or less.
yarn add vue-drumroll-datetime-picker
or
npm install vue-drumroll-datetime-picker
import { createApp } from 'vue'
import DateTimePicker from 'vue-drumroll-datetime-picker'
import 'vue-drumroll-datetime-picker/dist/style.css'
const app = createApp()
app.use(DateTimePicker)
<script>
import { DateTimePicker, DatePicker, TimePicker } from 'vue-drumroll-datetime-picker'
import 'vue-drumroll-datetime-picker/style.css'
export default {
components: {
DateTimePicker,
DatePicker,
TimePicker,
},
// ...your code
}
</script>
or
<script setup>
import { DateTimePicker, DatePicker, TimePicker } from 'vue-drumroll-datetime-picker'
import 'vue-drumroll-datetime-picker/style.css'
</script>
name | type | default | description |
---|---|---|---|
dateOrder | Array | ['year', 'month', 'date'] | Order of the date picker |
dialog | Boolean | false | Open picker in dialog |
dragSensitivity | [String, Number] | 1.7 | Drag sensitivity |
format | String | "YYYY-MM-DD HH:mm" | Date format |
height | [String, Number] | "10em" | Specifies the height of the picker |
hideOverlay | Boolean | false | Hide the dialog display overlay. Valid only if dialog is true |
hideButton | Boolean | false | Hide the dialog close button. Valid only if dialog is true |
locale | String | undefined | Locale of picker |
maxDate | [String, Number, Date] | value + 100 years | Maximum valid date and time |
minDate | [String, Number, Date] | 1900-01-01 00:00 | Valid minimum date and time |
minuteInterval | [String, Number] | 1 | Selectable minute intervals for Time picker |
modelValue | [String, Number, Date] | required | Value of datetime |
pattern | Object | undefined | Customize picker labels More details below |
scrollSensitivity | [String, Number] | 1.0 | Scroll sensitivity |
touchSensitivity | [String, Number] | 1.7 | Touch operation sensitivity |
type | ["datetime", "date", "time"] | "datetime" | Picker type. Select from 3 types: datetime / date / time |
name | type | default | description |
---|---|---|---|
dateOrder | Array | ['year', 'month', 'date'] | Order of the date drums |
dialog | Boolean | false | Open picker in dialog |
dragSensitivity | [String, Number] | 1.7 | Drag sensitivity |
format | String | "YYYY-MM-DD HH:mm" | Date format |
height | [String, Number] | "10em" | Specifies the height of the picker |
hideOverlay | Boolean | false | Hide the dialog display overlay. Valid only if dialog is true |
hideButton | Boolean | false | Hide the dialog close button. Valid only if dialog is true |
locale | String | undefined | Locale of picker |
maxDate | [String, Number, Date] | value + 100 years | Maximum valid date and time |
minDate | [String, Number, Date] | 1900-01-01 00:00 | Valid minimum date and time |
modelValue | [String, Number, Date] | required | Value of date |
pattern | Object | undefined | Customize picker labels More details below |
scrollSensitivity | [String, Number] | 1.0 | Scroll sensitivity |
touchSensitivity | [String, Number] | 1.7 | Touch operation sensitivity |
name | type | default | description |
---|---|---|---|
dialog | Boolean | false | Open picker in dialog |
dragSensitivity | [String, Number] | 1.7 | Drag sensitivity |
format | String | "HH:mm" | Time format |
height | [String, Number] | "10em" | Specifies the height of the picker |
hideOverlay | Boolean | false | Hide the dialog display overlay. Valid only if dialog is true |
hideButton | Boolean | false | Hide the dialog close button. Valid only if dialog is true |
locale | String | undefined | Locale of picker |
minuteInterval | [String, Number] | 1 | Selectable minute intervals |
modelValue | [String, Number, Date] | required | Value of time |
pattern | Object | undefined | Customize picker labels More details below |
scrollSensitivity | [String, Number] | 1.0 | Scroll sensitivity |
touchSensitivity | [String, Number] | 1.7 | Touch operation sensitivity |
"pattern" props are used to customize the labels displayed in the picker. This allows you to add additional information to the picker such as day of the week and AM / PM.
{
year: "YYYY",
month: "MMM", // -> Jan
date: "DD(ddd)", // -> 08(Tue)
hour: "A hh", // -> PM 9
minute: "mm",
dividerDate: "/", // -> 2022/Jan/08(Tue)
dividerTime: "@", // -> PM 9@15
}
FAQs
`vue-drumroll-datetime-picker` はスクロールで操作可能なドラム式デートタイムピッカーです。 日付のみ、時刻のみのピッカーもあります。
The npm package vue-drumroll-datetime-picker receives a total of 199 weekly downloads. As such, vue-drumroll-datetime-picker popularity was classified as not popular.
We found that vue-drumroll-datetime-picker demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.