0.0.1 • Published 4 years ago

xru-test-package v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

ReactJS Cron

A React cron component with antd inspired by jqcron

npm package

Live demo and usage at https://xrutayisire.github.io/react-js-cron/

react-js-cron example

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-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