Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
ngx-cron-jobs
Advanced tools
Readme
Angular > 2 version of angular-cron-jobs (http://angular-cron-jobs.github.io/angular-cron-jobs)
To install this library for Angular 5, run:
$ npm install ngx-cron-jobs@0.x.x --save
$ yarn add ngx-cron-jobs@0.x.x
where x.x is 4.9. Is should look like this 0.4.9. Line for Angular 5 will have major set to 0.
To install this library for Angular 6, run:
$ npm install ngx-cron-jobs@6.x.x --save
$ yarn add ngx-cron-jobs@6.x.x
where x.x is 4.9. Is should look like this 0.4.9. Line for Angular 6 will have major set to 6.
To install this library for Angular 7, run:
$ npm install ngx-cron-jobs@7.x.x --save
$ yarn add ngx-cron-jobs@7.x.x
where x.x is 2.4. Is should look like this 7.2.4 Line for Angular 6 will have major set to 6.
and then from your Angular AppModule
:
import { CronJobsModule } from 'ngx-cron-jobs';
@NgModule({
imports: [
...,
CronJobsModule,
...
]
})
export class AppModule { }
Once your library is imported, you can use its components, directives and pipes in your Angular application:
<!-- To insert to in your component minimal config with ngModel -->
<cron-jobs [(ngModel)]="hero.frequency"></cron-jobs>
<!-- To insert to in your component minimal config with reactive forms -->
<cron-jobs [formControl]="freqControl"></cron-jobs>
<!-- To insert to in your component minimal config with reactive forms -->
<!-- additional parameters -->
<cron-jobs [formControl]="freqControl" [config]="cronConfig" [validate]="cronValidate"></cron-jobs>
The component takes an input of [config]
and [validate]
Plugin maybe configured by config object to which should be pass in [config]
input.
List of options:
Option | Type | Description |
---|---|---|
quartz | boolean (false) | Use quartz syntax rather then cron syntax in control output |
multiple | boolean (false) | Enable multi select in plugin selects |
bootstrap | boolean (true) | Use bootstrap 4 html and css classes to build plugin forms |
option | object | Additional options |
option.minute | boolean (true) | remove (false) or add minute to plugin select to control user ability to set cron expression. |
option.hour | boolean (true) | remove (false) or add hour to plugin select to control user ability to set cron expression. |
option.day | boolean (true) | remove (false) or add day to plugin select to control user ability to set cron expression. |
option.week | boolean (true) | remove (false) or add week to plugin select to control user ability to set cron expression. |
option.month | boolean (true) | remove (false) or add month to plugin select to control user ability to set cron expression. |
option.year | boolean (true) | remove (false) or add year to plugin select to control user ability to set cron expression. |
Additional to this plugin supports validation config ([validate]
input):
Option | Type | Description |
---|---|---|
validate | boolean (false) | Add validation classes if controls are invalid. |
MIT © Daniel 'yp2' Derezinski
From angular 1 project
From angular2-cron-jobs project
From ngx-cron-jobs project
FAQs
This repository contains an Angular > 2 version of [angular-cron-jobs](http://angular-cron-jobs.github.io/angular-cron-jobs).
The npm package ngx-cron-jobs receives a total of 851 weekly downloads. As such, ngx-cron-jobs popularity was classified as not popular.
We found that ngx-cron-jobs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.