Skip to content

Commit 1d3dbb4

Browse files
committed
docs(readme): Add example of overriding ModelComponent provider
Example shows how to override year model provider. Close #424
1 parent 914b0ee commit 1d3dbb4

File tree

6 files changed

+355
-30
lines changed

6 files changed

+355
-30
lines changed

README.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,9 @@ Native Angular (5+) datetime picker component styled by Twitter Bootstrap 4.
2020

2121
See [angularjs-bootstrap-datetimepicker](https://github.com/dalelotts/angularjs-bootstrap-datetimepicker)
2222

23-
or
24-
25-
`npm install --save angularjs-bootstrap-datetimepicker`
26-
2723
## Support the project
2824
I know this is a tiny component but many people use it in production (high 5 to all of us) - if you happen to use this component please click the star button (at the top of the page) - it means a lot to all the contributors.
2925

30-
**NOTE:** Before submitting new issues, have a look at [issues marked with the `type: faq` label](https://github.com/dalelotts/angular-bootstrap-datetimepicker/issues?utf8=%E2%9C%93&q=is%3Aissue%20label%3A%22type%3A%20faq%22%20).
31-
3226
## Peer Dependencies
3327

3428
Peer dependencies:
@@ -128,7 +122,7 @@ or see [https://dalelotts.github.io/angular-bootstrap-datetimepicker/](https://d
128122
The `DlDateTimePickerComponent` component adds `aria-label` attributes to the left, right, and up buttons
129123
in addition to all calendar cells where the text of the cell may not fully describe the value.
130124

131-
### Keyboard shortcuts
125+
### Keyboard Accessibility
132126

133127
The `DlDateTimePickerComponent` component supports the following keyboard shortcuts in all views:
134128

@@ -182,7 +176,6 @@ This view allows the user to select a specific time of day, in the selected hour
182176
By default, the time is displayed in 5 minute increments. The <code>minuteStep</code> property controls the increments of time displayed.
183177
If the minute view is the minView, which is is by default, the date will be set to the beginning of the hour on the day selected.
184178

185-
optional:
186179

187180
## Contributing
188181

package.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,6 @@
9696
"zone.js": "^0.8.25"
9797
},
9898
"release": {
99-
"pkgRoot": "dist",
100-
"assets": [
101-
"dist/*.zip",
102-
"dist/*.tar.gz"
103-
]
99+
"pkgRoot": "dist"
104100
}
105101
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
See [dl-date-time-picker.component.md](./dl-date-time-picker.component.md)
2+

src/lib/dl-date-time-picker/dl-date-time-picker-change.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ export class DlDateTimePickerChange<D> {
2828

2929
/**
3030
* Get the new value of the date/time picker.
31-
* @returns
32-
* the new value or null.
31+
* @returns {D} the new value or null.
3332
*/
3433
get value(): D {
3534
return this._value;

0 commit comments

Comments
 (0)