ReactJS Cron
A React cron editor with antd inspired by jqcron
Live demo and usage at https://xrutayisire.github.io/react-js-cron/
Install
Be sure that you have these dependencies on your project:
yarn add react-js-cron
npm install --save react-js-cron
Usage
Learn more at https://xrutayisire.github.io/react-js-cron/
API
CronProps {
value: string
setValue:
| (value: string) => void
| Dispatch<SetStateAction<string>>
className?: string
clearButton?: boolean
clearButtonProps?: ButtonProps // Extends antd button props Without onClick
displayError?: boolean
setError?:
| (error: {
type: 'invalid_cron'
description: string
}) => void
| Dispatch<SetStateAction<{
type: 'invalid_cron'
description: string
}>>
| undefined
locale?: {
everyText?: string
emptyHours?: string
emptyWeekDays?: string
emptyMonthDays?: string
emptyMonths?: string
emptyMinutes?: string
emptyMinutesWhenHoursPeriod?: string
minuteOption?: string
hourOption?: string
dayOption?: string
weekOption?: string
monthOption?: string
yearOption?: string
prefixPeriod?: string
prefixHours?: string
prefixWeekDays?: string
prefixMonthDays?: string
prefixMonths?: string
prefixMinutes?: string
prefixMinutesWhenHoursPeriod?: string
suffixMinutesWhenHoursPeriod?: string
errorInvalidCron?: string
weekDays?: string[]
months?: string[]
}
}
License
MIT © xrutayisire