Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
@lazy-copilot/datetimepicker
Advanced tools
RWD friendly date+time picker for Vue. Supports date, datetime and time modes, and disabling dates.
https://vue-datetimepicker.github.io/package/
The DateTimePicker
components are designed to fit all date
and time
selection, including features of :
$ npm install @lazy-copilot/datetimepicker
or
$ yarn add @lazy-copilot/datetimepicker
Bascilly we initalize the dateTimePicker
component by given props, the common use case is to reassign date and time to a data.
And we get the updated value by vue @event @onChange="data=$event"
.
Name | Data Type | Example | Description |
---|---|---|---|
startDate | Date | new Date() | |
endDate | Date | above | |
singleDate | Boolean | true | Range/Single selection, default false |
Name | Data Type | Example | Description |
---|---|---|---|
onChange | function | ()=>{} |
<template>
<date-time-picker
:startDate = "startDate" //optional
:endDate = "endDate" //optional
:singleDate = "true" //optional, default false
@onChange = "onChange" //optional
/>
</template>
<script>
import '@lazy-copilot/datetimepicker/dist/datetimepicker.css'
import { DateTimePicker } from "@lazy-copilot/datetimepicker";
export default {
name: "app",
components: {
DateTimePicker
},
methods: {
onChange: function(data) {
console.log("data: ", data);
}
},
data: function() {
return {
startDate: new Date("2018-12-13T00:03"),
endDate: new Date("2018-12-16T23:29")
};
}
}
</script>
Selecting Date and Time got so many different scenario, and there is no silver bullet, no such single component fullfill all usecases.
And our solution is decompositing dateTimePicker.vue
to four components.
To See more example, please checkout ./demo/src/App.vue
.
import { DateTimePicker } from "@lazy-copilot/datetimepicker";
import { DateTimePickerModal } from "@lazy-copilot/datetimepicker";
import { DatePicker } from "@lazy-copilot/datetimepicker";
import { TimePicker } from "@lazy-copilot/datetimepicker";
The time-picker
here is a customized version of the awesome project vue2-timepicker
by phoenixwong
.
FAQs
## Project setup ``` npm install ```
We found that @lazy-copilot/datetimepicker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.