GithubHelp home page GithubHelp logo

ahollyer / ngx-cron-jobs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rvalenciano/ngx-cron-jobs-orig

0.0 1.0 0.0 700 KB

Angular > 2 version of angular-cron-jobs. Demo: https://yp2.github.io/ngx-cron-jobs/

TypeScript 83.50% JavaScript 1.76% HTML 13.64% CSS 1.11%

ngx-cron-jobs's Introduction

ngx-cron-jobs

Angular > 2 version of angular-cron-jobs (http://angular-cron-jobs.github.io/angular-cron-jobs)

Installation

To install this library for Angular 5, run:

$ npm install [email protected]  --save

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 [email protected]  --save

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 [email protected]  --save

where x.x is 2.4. Is should look like this 7.2.4 Line for Angular 6 will have major set to 6.

Consuming your library

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>

Configuration:

The component takes an input of [config] and [validate]

Options

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.

License

MIT © Daniel 'yp2' Derezinski

Contributors

From angular 1 project

@wowo

@immertreu

@TSteele27

@DmitryEfimenki

From angular2-cron-jobs project

@rvalenciano

From ngx-cron-jobs project

Daniel 'yp2' Derezinski

ngx-cron-jobs's People

Contributors

yp2 avatar rvalenciano avatar wu-jing avatar angular-cli avatar yardenfi avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.