bootstrap-cron-picker

1.0.0 • Public • Published

CronPicker

CronPicker is a javascript library that provides easy to use interface for generating CRON expressions.

TODO: add preview gif

Features

  1. Supports multiple CRON formats: crontab (StandardCronFormatter) and extended format used in Quartz Scheduler (QuartzCronFormatter)
  2. Can be initialized with an existing CRON expression

Installation

npm install cron-picker

Using Bower:

bower install cron-picker

Usage

To attach CronPicker to an input field with id #cron-picker:

$('#cron-picker').cronPicker();

You can also initialize CronPicker with existing cron expression. To do that, simply set value of the HTML input before attaching CronPicker.

For advanced usage, you can pass any of the following options:

$('#cron-picker').cronPicker({
        // callback function called each time cron expression is updated
        onCronChanged: function (cron) {
            console.log(cron);
        }
    });

Readme

Keywords

none

Package Sidebar

Install

npm i bootstrap-cron-picker

Weekly Downloads

15

Version

1.0.0

License

MIT

Last publish

Collaborators

  • koss-lebedev