-
Notifications
You must be signed in to change notification settings - Fork 107
Open
Description
Has this been tested with jQuery 3?
We have an Angular 2 app that uses jQuery 3.1.1 and jQuery-UI 1.12.1. When I try to generate the picker, it successfully hides the input and writes the button, but doesn't get much more.
<div class="form-group">
<label class="inline-title">Date Range:</label>
<input daterrngepicker=""
ng-reflect-options="[object Object]"
ng-reflect-start-date="Tue Jan 10 2017 15:32:07 GMT-0600 (Central Standard Time)"
ng-reflect-end-date="Thu Feb 09 2017 15:32:07 GMT-0600 (Central Standard Time)"
style="display: none;">
<button type="button"
class="comiseo-daterangepicker-triggerbutton comiseo-daterangepicker-bottom"
id="drp_autogen0">
</button>
</div>
In Angular Directive
ngOnInit() {
this._picker = jQuery(this.elementRef.nativeElement);
this._picker.daterangepicker(this.options);
if(this.options.startDate && this.options.endDate)
this._picker.daterangepicker('setRange',{
start:this.options.startDate,
end: this.options.endDate
});
}
Options
{
initialText: 'Select Range',
dateFormat: 'mm/dd/yy'
}
Any ideas?
Metadata
Metadata
Assignees
Labels
No labels