Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vincentjames501/angular-cron-gen
A basic way to for users to graphically build a cron expression using Angular.
https://github.com/vincentjames501/angular-cron-gen
angular angularjs cron cron-expression directive
Last synced: 3 months ago
JSON representation
A basic way to for users to graphically build a cron expression using Angular.
- Host: GitHub
- URL: https://github.com/vincentjames501/angular-cron-gen
- Owner: vincentjames501
- License: mit
- Created: 2016-09-24T22:49:55.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T02:30:43.000Z (almost 2 years ago)
- Last Synced: 2024-04-24T23:00:49.036Z (7 months ago)
- Topics: angular, angularjs, cron, cron-expression, directive
- Language: JavaScript
- Size: 745 KB
- Stars: 35
- Watchers: 5
- Forks: 207
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-client-side - angular-cron-gen - A basic way to for users to graphically build a cron expression using Angular - [Try it!](https://github.com/vincentjames501/angular-cron-gen) (Editor)
README
angular-cron-gen
===================A basic way to for users to graphically build a cron expression.
Demo can be found [here](https://vincentjames501.github.io/angular-cron-gen/).
**Requirements:** AngularJS 1.5+
## Usage:
1. Include the dependency in your app
```js
angular.module('myApp', ['angular-cron-gen'])
```2. Include the supplied JS and CSS file (or create your own CSS to override defaults).
```html
```3. That's it -- you're done!
#### Via bower:
```
$ bower install angular-cron-gen
```
#### Via npm:
```
$ npm install angular-cron-gen
```## Options
```html
```
```js
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