Simple react component to generate cron expression (Material-UI)
Package helps to build linux scheduler cron expression. This project uses material-ui
data = '* * * * * * *'
npm i --save @dealmeddevs/react-cron-generator
import React, { useState } from 'react'
import Cron from 'react-cron-generator'
const App = (props) => {
const [value, setValue] = useState()
return (
<div>
<Cron
onChange={(e)=> {setValue(e); console.log(e)}}
value={value}
showResultText={true}
showResultCron={true}
/>
</div>
)
}
export default App
Prop | Description | Default |
---|---|---|
value | cron expression | |
onChange | ||
showResultText | show in readable text format | false |
showResultCron | show cron expression | false |