Meet npm Pro: unlimited public & private packages + package-based permissions.Learn more »

react-cron-generator

1.1.5 • Public • Published

react-cron-generator

Simple react component to generate cron expression

Getting Started

Package helps to build linux scheduler cron expression. Make sure you have include bootstrap in your project

data = '* * * * * * *'
npm install react-cron-generator

demo

Live demo

alt text

alt text

import React, { Component } from 'react'
import Cron from 'react-cron-generator'
import 'react-cron-generator/dist/cron-builder.css'


class App extends Component {

  constructor(props) {
      super(props);
      this.state = {
       
      };
  }

  render() {
    return (<div>
      <Cron
        onChange={(e)=> {this.setState({value:e}); console.log(e)}}
        value={this.state.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

Acknowledgments

*cronstrue *viswanath lakshmanan

Install

npm i react-cron-generator

DownloadsWeekly Downloads

228

Version

1.1.5

License

ISC

Unpacked Size

51.2 kB

Total Files

11

Last publish

Collaborators

  • avatar