{"id":13674112,"url":"https://github.com/wingify/angular-time-picker","last_synced_at":"2025-04-26T17:30:42.504Z","repository":{"id":57179228,"uuid":"47472152","full_name":"wingify/angular-time-picker","owner":"wingify","description":":clock8: Angular directive for time picker","archived":false,"fork":false,"pushed_at":"2016-08-27T08:59:12.000Z","size":202,"stargazers_count":7,"open_issues_count":3,"forks_count":24,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-15T12:38:54.586Z","etag":null,"topics":["angular","angular-directive","picker","time-picker","time-range"],"latest_commit_sha":null,"homepage":"http://engineering.wingify.com/angular-time-picker/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wingify.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-05T20:49:16.000Z","updated_at":"2020-09-17T08:17:15.000Z","dependencies_parsed_at":"2022-09-09T19:01:35.762Z","dependency_job_id":null,"html_url":"https://github.com/wingify/angular-time-picker","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wingify%2Fangular-time-picker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wingify%2Fangular-time-picker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wingify%2Fangular-time-picker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wingify%2Fangular-time-picker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wingify","download_url":"https://codeload.github.com/wingify/angular-time-picker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251025550,"owners_count":21524824,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","angular-directive","picker","time-picker","time-range"],"created_at":"2024-08-02T11:00:41.068Z","updated_at":"2025-04-26T17:30:42.183Z","avatar_url":"https://github.com/wingify.png","language":"JavaScript","readme":"# \u003cimg src=\"images/time-picker.png\" alt=\"Time Picker\" width=\"50\" height=\"50\"/\u003e wyTimePicker\n\nA basic and lightweight angular time picker directive\n\n[![Bower Version](http://img.shields.io/bower/v/angular-time-picker.svg?style=flat)](https://github.com/wingify/angular-time-picker/releases) [![npm version](https://badge.fury.io/js/angular-time-picker.svg)](https://www.npmjs.com/package/angular-time-picker) [![npm](https://img.shields.io/npm/dt/angular-time-picker.svg)](https://www.npmjs.com/package/angular-time-picker) [![Build Status](http://img.shields.io/travis/wingify/angular-time-picker/master.svg?style=flat)](http://travis-ci.org/wingify/angular-time-picker)\n#### Requirements\n\nAngular v1.2+\n\n## Features\n\n* With no external dependency, angular-time-picker is lighter and faster.\n* It can be used for selecting a particular time or a time range.\n* Many different configurable options like:\n\t* Setting the initial display time as per the requirements\n\t* Two minimalistic different themes viz light and dark\n\t* Precisely configure / update the time range as per the needs\n\t* Robust validation exclusively for time range picker\n\t* Provide custom callbacks for apply / cancel operations\n\n## Demo\n\n[LIVE DEMO on Plunkr](https://plnkr.co/edit/P38jXpcLPnAzWVcpN5Sv?p=preview)\n\n[Read More](http://engineering.wingify.com/angular-time-picker/introduction.html)\n\n## Installation\n\n* Via [bower](https://bower.io/search/?q=angular-time-picker) - **`bower install angular-time-picker --save`**\n* Via [npm](https://www.npmjs.com/package/angular-time-picker) - **`npm install angular-time-picker --save-dev`**\n\n## Usage\n\n* Install Angular Time Picker with Bower\n\n\u003e\n```bash\nbower install angular-time-picker --save\n```\n\n* Include the required libraries in your index.html:\n\n\u003e\n```html\n\u003c!-- css file in head tag--\u003e\n\u003clink rel=\"stylesheet\" type=\"text/css\" href=\"bower_components/angular-time-picker/dist/angular-time-picker.min.css\"\u003e\n\u003c!-- js files, either inside \u003chead\u003e...\u003c/head\u003e or just before the \u003c/body\u003e --\u003e\n\u003cscript src=\"bower_components/angular/angular.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"bower_components/angular-time-picker/dist/angular-time-picker.min.js\"\u003e\u003c/script\u003e\n\u003c!-- your app.js goes here --\u003e\n```\n\n* Inject the wingify.timePicker module into your app:\n\n\u003e\n```js\nangular.module('myApp', ['wingify.timePicker']);\n```\n\n## Options\n\nThere are a number of options that can be configured with inline attributes. All are optional.\n\n| Option               | Default    | Possible Values | Description                                                                             |\n|----------------------|------------|-----------------|-----------------------------------------------------------------------------------------|\n| data-dropdown        | false      | `false`, `true` | Time picker dropdown initial state.                                                     |\n| data-time-settings   | {}         | `      -       `| Initial time settings eg. {fromHour: '01',fromMinute: '00',toHour: '20',toMinute: '50'} |\n| data-theme           | light      | `light`, `dark` | Theme for the time picker button and the dropdown                                       |\n| data-no-range        | null       | `false`, `true` | Pick a particular time or a time range                                                      |\n| data-format          | 24         | `12`, `24`      | Time Format(hours)                                                                      |\n| data-no-validation   | null       | `false`, `true` | Validation checks for time range picker(useful for preventing misleading data)          |\n| data-apply-callback  | null       | `function`      | Callback to be invoked when APPLY button is being pressed to update time                |\n| data-clear-callback  | null       | `function`      | Callback to be invoked when CANCEL button is being pressed to cancel current operation  |\n\n**Example:**\n\n```js\n// Set initial time range to be 05:30 - 10:10\n$scope.settings = {\n\tdropdownToggleState: false,\n\ttime: {\n\t\tfromHour: '05',\n\t\tfromMinute: '30',\n\t\ttoHour: '10',\n\t\ttoMinute: '10'\n\t},\n\ttheme: 'dark',\n\tnoRange: false,\n\tformat: 24,\n\tnoValidation: false\n};\n$scope.onApplyTimePicker = function () {\n\tconsole.log('Time range applied.');\n};\n$scope.onClearTimePicker = function () {\n\tconsole.log('Time range current operation cancelled.');\n};\n```\n\n```html\n\u003cwy-time-picker\n\tdata-dropdown-toggle-state=\"settings.dropdownToggleState\"\n\tdata-time-settings=\"settings.time\"\n\tdata-theme=\"settings.theme\"\n\tdata-no-range=\"settings.noRange\"\n\tdata-format=\"settings.format\"\n\tdata-no-validation=\"settings.noValidation\"\n\tdata-apply-callback=\"onApplyTimePicker()\"\n\tdata-clear-callback=\"onClearTimePicker()\"\u003e\n\u003c/wy-time-picker\u003e\n```\n\n## Browser Support\n\nTested in Chrome and Firefox.\n\n## Running Tests\n\nTo execute all unit tests, use:\n\n```bash\n`grunt unit`\n```\n\n## Contributing\n\nContributions are welcome. Whenever possible, please include test coverage with your contribution.\n\n1. Fork it\n2. Create your feature branch (``git checkout -b my-new-feature``)\n3. Commit your changes (``git commit -am 'Add some feature'``)\n4. Push to the branch (``git push origin my-new-feature``)\n5. Create new Pull Request\n\nTo get the project running, you'll need [NPM](https://www.npmjs.com/) and [Bower](http://bower.io/).\n\n* Run `npm install` and `bower install` to install all dependencies.\n* Then run `grunt local` in the project directory to watch and compile changes.\n* And you can run `grunt unit` to watch for changes and auto-execute unit tests.\n\n## Authors\n\n* **[Varun Malhotra](https://github.com/softvar)**\n\n## Contributors\n\n* **[@pra85](https://github.com/pra85)** - PRs - [#1](https://github.com/wingify/angular-time-picker/pull/1), [#2](https://github.com/wingify/angular-time-picker/pull/2), [#3](https://github.com/wingify/angular-time-picker/pull/3), [#5](https://github.com/wingify/angular-time-picker/pull/5), [#6](https://github.com/wingify/angular-time-picker/pull/6), [#7](https://github.com/wingify/angular-time-picker/pull/7)\n\n## Copyright and license\n\n\u003eThe MIT License (MIT)\n\u003e\n\u003eCopyright (c) 2015-2016 Wingify Software Pvt. Ltd.\n\u003e\n\u003ePermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\u003e\n\u003eThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\u003e\n\u003eTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","funding_links":[],"categories":["UI Components"],"sub_categories":["Tooltip"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwingify%2Fangular-time-picker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwingify%2Fangular-time-picker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwingify%2Fangular-time-picker/lists"}