angular-cron-gen

WebJar for angular-cron-gen

License

License

MIT
Categories

Categories

Angular User Interface Web Frameworks
GroupId

GroupId

org.webjars.bower
ArtifactId

ArtifactId

angular-cron-gen
Last Version

Last Version

0.0.23
Release Date

Release Date

Type

Type

jar
Description

Description

angular-cron-gen
WebJar for angular-cron-gen
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/vincentjames501/angular-cron-gen

Download angular-cron-gen

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bower/angular-cron-gen/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>angular-cron-gen</artifactId>
    <version>0.0.23</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/angular-cron-gen/
implementation 'org.webjars.bower:angular-cron-gen:0.0.23'
// https://jarcasting.com/artifacts/org.webjars.bower/angular-cron-gen/
implementation ("org.webjars.bower:angular-cron-gen:0.0.23")
'org.webjars.bower:angular-cron-gen:jar:0.0.23'
<dependency org="org.webjars.bower" name="angular-cron-gen" rev="0.0.23">
  <artifact name="angular-cron-gen" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='angular-cron-gen', version='0.0.23')
)
libraryDependencies += "org.webjars.bower" % "angular-cron-gen" % "0.0.23"
[org.webjars.bower/angular-cron-gen "0.0.23"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.bower : angular jar [1.5.0,2)

Project Modules

There are no modules declared in this project.

angular-cron-gen

A basic way to for users to graphically build a cron expression.

Demo can be found here.

Requirements: AngularJS 1.5+

Usage:

  1. Include the dependency in your app

    angular.module('myApp', ['angular-cron-gen'])
  2. Include the supplied JS and CSS file (or create your own CSS to override defaults).

    <link rel='stylesheet' href='build/cron-gen.min.css' type='text/css' media='all' />
    <script type='text/javascript' src='build/cron-gen.min.js'></script>
  3. That's it -- you're done!

Via bower:

$ bower install angular-cron-gen

Via npm:

$ npm install angular-cron-gen

Options

<cron-gen ng-model="cronExpression" 
          options="cronOptions" 
          template-url="your optional, custom template (Defaults to a bootstrap 3 template)"
          cron-format="quartz (Currently only compatible with 'quartz' and defaults to 'quartz')"
          ng-disabled="isCronDisabled">
</cron-gen>
angular.module('myApp', ['angular-cron-gen'])
  .controller('myController', ['$scope', ($scope) => {
    $scope.cronExpression = '0 0 0/3 1/1 * ? *';
    $scope.isCronDisabled = false;
    $scope.cronOptions = {
      formInputClass: 'form-control cron-gen-input', // Form input class override
      formSelectClass: 'form-control cron-gen-select', // Select class override
      formRadioClass: 'cron-gen-radio', // Radio class override
      formCheckboxClass: 'cron-gen-checkbox', // Radio class override
      hideMinutesTab: false, // Whether to hide the minutes tab
      hideHourlyTab: false, // Whether to hide the hourly tab
      hideDailyTab: false, // Whether to hide the daily tab
      hideWeeklyTab: false, // Whether to hide the weekly tab
      hideMonthlyTab: false, // Whether to hide the monthly tab
      hideYearlyTab: false, // Whether to hide the yearly tab
      hideAdvancedTab: true, // Whether to hide the advanced tab
      use24HourTime: false, // Whether to show AM/PM on the time selectors
      hideSeconds: false // Whether to show/hide the seconds time picker
    };
  }])

License:

Licensed under the MIT license

Versions

Version
0.0.23
0.0.22