Package Exports
- react-js-cron
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-js-cron) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ReactJS Cron
Live demo and usage at https://xrutayisire.github.io/react-js-cron/

Install
Be sure that you have these dependencies on your project:
- antd
- react
- react-dom
# Yarn
yarn add react-js-cron
# NPM
npm install --save react-js-cronUsage
Learn more at https://xrutayisire.github.io/react-js-cron/
API
CronProps {
value: string
setValue:
| (value: string) => void
| Dispatch<SetStateAction<string>>
className?: string
humanizeLabels?: boolean // Default: true
humanizeValue?: boolean // Default: false
leadingZero?: 'never' | 'always' | ['month-days', 'hours', 'minutes'] // Default: 'never'
defaultPeriod?: 'year' | 'month' | 'week' | 'day' | 'hour' | 'minute' // Default: 'day'
disabled?: boolean // Default: false
readOnly?: boolean // Default: false
allowEmpty?: 'always' | 'never' | 'for-default-value' // Default: 'for-default-value'
clearButton?: boolean // Default: true
clearButtonProps?: ButtonProps // Extends antd button props without onClick
displayError?: boolean // Default: true
setError?:
| (error: {
type: 'invalid_cron'
description: string
}) => void
| Dispatch<SetStateAction<{
type: 'invalid_cron'
description: string
}>>
| undefined
locale?: {
everyText?: string
emptyMonths?: string
emptyMonthDays?: string
emptyMonthDaysShort?: string
emptyWeekDays?: string
emptyWeekDaysShort?: string
emptyHours?: string
emptyMinutes?: string
emptyMinutesForHourPeriod?: string
yearOption?: string
monthOption?: string
weekOption?: string
dayOption?: string
hourOption?: string
minuteOption?: string
prefixPeriod?: string
prefixMonths?: string
prefixMonthDays?: string
prefixWeekDays?: string
prefixWeekDaysForMonthAndYearPeriod?: string
prefixHours?: string
prefixMinutes?: string
prefixMinutesForHourPeriod?: string
suffixMinutesForHourPeriod?: string
errorInvalidCron?: string
weekDays?: string[]
months?: string[]
} // Default: See file 'src/locale.ts'
}License
MIT © xrutayisire