Angular Dayparts
Angular directive for select hours in a week.
Screenshots
Sample 1
Sample 2
Usage
Include the module in your app
angular.module('myapp', ['angular-dayparts'])
Configure the directive inside the controller
$scope.options = {
reset: true,
onChange: function(selected) {
console.log('selected: ', selected)
},
selected: ['monday-14', 'monday-15', 'monday-15.5'],
disableRowSelection: true,
disableColumnSelection: true
reverse: true,
twelveOClockLabel: true
};
Call the directive from your page
<angular-dayparts options="options"></angular-dayparts>
Demo
Install dependencies:
npm install
Compile:
gulp
Run web server in at the root
example:
- cd angular-dayparts
- http-server
Starting up http-server, serving ./
Available on:
http://127.0.0.1:8080
http://localhost:8080
Hit CTRL-C to stop the server
License
Released under the terms of MIT License.