
Security News
How Enterprise Security Is Adapting to AI-Accelerated Threats
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.
ciqu-react-calendar
Advanced tools
[](https://www.npmjs.org/package/ciqu-react-calendar) [](https://gemnasium.com/github.
npm i ciqu-react-calendar
OR
yarn add ciqu-react-calendar
import React from 'react'
import ReactDom from 'react-dom'
import moment from 'moment'
import Calendar from 'ciqu-react-calendar'
class MyCalendar extends React.Component {
constructor(props) {
super(props)
this.state = {
value: moment()
}
}
onChange = (value, inputValue) => {
console.log(value.format('YYYY-MM-DD'))
this.setState({value})
}
onOpenChange = (status) => {
console.log('open status: ' + status)
}
disabledDate = (currentDate, inputValue) => {
return false
}
render() {
const {onChange, onOpenChange, disabledDate} = this
return <div>
<Calendar
onChange={onChange}
value={this.state.value}
allowClear={true}
disabled={false}
placeholder={'please input date'}
format={'YYYY-MM-DD'}
onOpenChange={onOpenChange}
disabledDate={disabledDate}
/>
</div>
}
}
ReactDom.render(
<MyCalendar/>,
document.getElementById('el')
)
interface CalendarProps {
// when input value changes, this callback will be called, default null
onChange?(value?: Moment, inputValue?: string): void
// fired when datepicker shows or hides, default null
onOpenChange?(status?: boolean): void
// when returned true, the target date cannot be picked, default null
disabledDate?(currentDate: Moment, inputValue: string): boolean
// allow to clear the picked date, default true
allowClear?: boolean
// if true, datepicker is disabled, default false
disabled?: boolean
// control whether datepicker shows or hides, default false
open?: boolean,
placeholder?: string
// moment format string, default 'YYYY-MM-DD'
format?: string
className?: string
// the value under control, default moment()
value?: Moment
// the default value
defaultValue?: Moment
}
MIT
FAQs
[](https://www.npmjs.org/package/ciqu-react-calendar) [](https://gemnasium.com/github.
The npm package ciqu-react-calendar receives a total of 7 weekly downloads. As such, ciqu-react-calendar popularity was classified as not popular.
We found that ciqu-react-calendar demonstrated a not healthy version release cadence and project activity because the last version was released 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
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.