0.10.1 • Published 8 months ago

ngx-cron-editor v0.10.1

Weekly downloads
597
License
MIT
Repository
github
Last release
8 months ago

ngx-cron-editor

An Angular 15+ component for building cron expressions graphically. It is meant to be used in reactive forms and support Angular Material Design styling.

Demo

A demo can be found here

Usage

  1. Install the npm package:

    $ npm i ngx-cron-editor -S
  2. Import the module in your own module:

    import { CronEditorModule } from 'ngx-cron-editor';
    
    @NgModule({
        imports: [..., CronEditorModule],
    ...
    })
    export class MyModule {
    }
  3. Setup the FormControl in you component's typescript file:

    ngOnInit(): void {
      this.cronForm = new FormControl('0 0 1/1 * *');
    }
  4. Include the component in your html code:

    <cron-editor [formControl]="cronForm"></cron-editor>

    or use the formControlName='...' directive if your form controller lives in a FormGroup.

Options

<cron-editor [formControl]="cronForm" [options]="cronOptions"></cron-editor>
import { CronOptions } from 'ngx-cron-editor';

@Component({
    ...
})
export class MyComponent {
   public cronOptions: CronOptions = {
       defaultTime: "00:00:00",

       hideMinutesTab: false,
       hideHourlyTab: false,
       hideDailyTab: false,
       hideWeeklyTab: false,
       hideMonthlyTab: false,
       hideYearlyTab: false,
       hideAdvancedTab: true,
       hideSpecificWeekDayTab: false,
       hideSpecificMonthWeekTab : false,

       use24HourTime: true,
       hideSeconds: false,

       cronFlavor: "quartz" //standard or quartz
    };
}

History

The ngx-cron-editor is a fork of the vincentjames501's angular-cron-gen for AngularJS 1.5+ and claudiuconstantin's cron-editor(https://github.com/claudiuconstantin/cron-editor).

The main additions of this fork is support for Angular 8+ and material design.

License:

Licensed under the MIT license

0.10.1

8 months ago

0.8.4

9 months ago

0.10.0

9 months ago

0.9.0

9 months ago

0.8.3

9 months ago

0.8.2

1 year ago

0.8.1

1 year ago

0.8.0

1 year ago

0.7.11

2 years ago

0.7.10

2 years ago

0.7.9

2 years ago

0.7.8

2 years ago

0.7.7

2 years ago

0.7.9-0

2 years ago

0.7.6

2 years ago

0.7.5

2 years ago

0.7.4

3 years ago

0.7.3

3 years ago

0.7.2

4 years ago

0.7.1

4 years ago

0.7.0

4 years ago

0.6.7

4 years ago

0.6.8

4 years ago

0.6.6

4 years ago

0.6.4

5 years ago

0.6.3

5 years ago

0.6.2

5 years ago

0.6.1

5 years ago

0.6.0

5 years ago

0.5.0

6 years ago

0.5.1

6 years ago

0.4.0

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago