@damunga/mui-react-cron-generator
v1.0.0
Published
Material UI Cron Generator
Downloads
1
Maintainers
Readme
mui-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 @davidamunga/mui-react-cron-generator
demo
import React, { useState } from 'react'
import Cron from 'mui-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 |