react cron jobs
React UI component to create cron expression.
installation
npm install --save react-cron-jobs
demo
Usage
;;; Component { console; } { return <div> <CronJob getCronExpression=thismyCallBackFunc jobName='applicationBackup'> </CronJob> </div> ; } ;
Props
Prop | Type | Description |
---|---|---|
getCronExpression |
function | Use this callback function to receive the cron expression for the schedule configured. |
jobName |
string | Pass this prop to get the name of the job in the callback function passed as props |
frequency |
string | Pass this prop along with prop 'cronString' to load the cronjob UI with this frequency and highlight the selected values |
cronString |
string | Pass this prop along with prop 'frequency' to load the cronjob UI with this cronString and highlight the selected values |
License
MIT