# angular-dayparts

> Angular directive for select hours in a week

Latest version **0.2.8** (published 2016-04-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install angular-dayparts
pnpm add angular-dayparts
yarn add angular-dayparts
bun add angular-dayparts
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.8 |
| Published | 2016-04-06 |
| First published | 2016-01-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | https://github.com/cichys |
| Maintainers | cichys |

## Links

- npm: https://www.npmjs.com/package/angular-dayparts
- Repository: https://github.com/cichys/angular-dayparts
- Issues: https://github.com/cichys/angular-dayparts/issues
- npm.io page: https://npm.io/package/angular-dayparts

## Dependencies (3)

- [jquery](https://npm.io/package/jquery.md) >= 1.9.0
- [angular](https://npm.io/package/angular.md) >=1.2.0
- [underscore](https://npm.io/package/underscore.md) >=1.8.0

## Recent versions

- 0.2.8 (latest) — 2016-04-06
- 0.2.5 — 2016-03-07
- 0.2.1 — 2016-01-18

## README

# angular dayparts

Angular directive for select hours in a week

Code based on [this StackOverflow answer](http://stackoverflow.com/questions/23163952/how-do-i-capture-table-td-elements-using-mousedown-dragselect-event)


![Sample](sample.jpg)


Install it with Bower or npm

```bash
bower install angular-dayparts
```
```bash
npm install angular-dayparts
```


Include the module in your app

```javascript
angular.module('myapp', ['angular-dayparts'])
```


Configure the directive inside the controller

```javascript
$scope.options = {
    // Reset button
    reset: true, // default false
    
    // Event triggered when selecting a cell
    onChange: function(selected) {
        console.log('selected: ', selected)
    },
    
    // Prepopulated cells
    selected: ['monday-14', 'monday-15'],
    
    // When true clicking on the day name it will select the entire row
    disableRowSelection: true, // default false
    
    // When true clicking on the hour it will select the entire columns
    disableColumnSelection: true // default false
};
```


Call the directive from your page

```html
<angular-dayparts options="options"></angular-dayparts>
```


## License

Released under the terms of MIT License.

---
_Source: https://npm.io/package/angular-dayparts · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
