Native AngularJS datetime picker directive styled by Twitter Bootstrap
dependabot[bot] on npm_and_yarn
chore(deps-dev): bump semantic-… (compare)
The demo folder is not available: https://github.com/dalelotts/angular-bootstrap-datetimepicker/tree/master/demo
Where is it possible to find examples, or projects using this library?
.bind
See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_objects/Function/bind
selectFilter
that simply disables those hours, but the user will still see them - See https://dalelotts.github.io/angular-bootstrap-datetimepicker/components/DlDateTimePickerComponent.html#selectFilter. The second option is to override the HourModelProvider - See https://dalelotts.github.io/angular-bootstrap-datetimepicker/classes/DlHourModelProvider.html
selectFilter
- see https://dalelotts.github.io/angular-bootstrap-datetimepicker/components/DlDateTimePickerComponent.html#selectFilter which is called once for every date in the view (rather than one call with all of the dates. It should work the same but if you have any issues, please let me know.
selectFilter
- see https://dalelotts.github.io/angular-bootstrap-datetimepicker/components/DlDateTimePickerComponent.html#selectFilter which is called once for every date in the view. Just return false
for any date prior to today
how
the value was set and that seems like a code smell to me.
@dalelotts I have the datepicker in a modal. When user doesn't finish selecting date time and closes the modal, the datepicker should display from day view. In my case its showing from where the selection left off. Yes, I tried setting the 'startView' to 'day' again when user closes the modal popup. Still date picker is displayed from time view. Please find my code below.
<dl-date-time-picker [(maxView)]='year' [(minView)]='minute'
[(startView)]="startView" [(ngModel)]="startDate"
[ngModelOptions]="{standalone: true}"
[(minuteStep)]="5"
[(rightIconClass)]="rightIconClass"
[(leftIconClass)]="leftIconClass"
(change)="onInputSelect()">
</dl-date-time-picker>
//Initial Datepicker config
startView = 'day';
rightIconClass = [
'glyphicon', 'glyphicon-arrow-right'
];
leftIconClass = [
'glyphicon', 'glyphicon-arrow-left'
];
//when user closes modal. on close icon call back I have reset the startView to 'day'.