@dealmeddevs/react-cron-generator
v2.0.5
Published
Simple react component to generate cron expression (Material UI)
Downloads
35
Maintainers
Readme
react-cron-generator
Simple react component to generate cron expression (Material-UI)
Getting Started
Package helps to build linux scheduler cron expression. This project uses material-ui
data = '* * * * * * *'
npm i --save @dealmeddevs/react-cron-generator
demo
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
props
| Prop | Description | Default | --- | --- | -- | | value | cron expression | | | onChange | | | | showResultText | show in readable text format | false | | showResultCron | show cron expression | false |