Skip to content

jQuery 3 or Angular 2 #76

@HFTSOL

Description

@HFTSOL

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions