Cron Generator

A cron expression generator for AngularJS.

  Download   Fork on GitHub

Demo



Generated Cron Expression: {{cronExpression}}
Is Valid: True False

Usage


<cron-gen ng-model="cronExpression"
          ng-disabled="isCronDisabled"
          template-url="your optional, custom template (Defaults to a bootstrap 3 template)"
          cron-format="quartz (Currently only compatible with 'quartz' and defaults to 'quartz')"
          options="cronOptions">
</cron-gen>
angular.module('ExampleApp', ['angular-cron-gen'])
  .controller('ExampleCtrl', ['$scope', function ($scope) {
    $scope.cronExpression = '0 8 9 9 1/8 ? *';
    $scope.cronOptions = {
      hideAdvancedTab: false
    };
    $scope.isCronDisabled = false;
  }]);

Options


Options Description Type Default
formInputClass The input class override String "form-control cron-gen-input"
formSelectClass The select class override String "form-control cron-gen-select"
formRadioClass The radio class override String "cron-gen-radio"
formCheckboxClass The checkbox class override String "cron-gen-checkbox"
hideMinutesTab Whether the minutes tab should be hidden boolean false
hideHourlyTab Whether the hourly tab should be hidden boolean false
hideDailyTab Whether the daily tab should be hidden boolean false
hideWeeklyTab Whether the weekly tab should be hidden boolean false
hideMonthlyTab Whether the monthly tab should be hidden boolean false
hideYearlyTab Whether the yearly tab should be hidden boolean false
hideAdvancedTab Whether the advanced tab should be hidden boolean true
use24HourTime Whether to show AM/PM on the time selectors boolean false
hideSeconds Whether to show/hide the seconds time picker boolean false