Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calendar opens in Angular 6 but is faded and I cannot click a date #337

Open
kogden opened this issue Oct 19, 2018 · 1 comment
Open

Calendar opens in Angular 6 but is faded and I cannot click a date #337

kogden opened this issue Oct 19, 2018 · 1 comment

Comments

@kogden
Copy link

kogden commented Oct 19, 2018

Description of problem is in the title.

<span class="dateContainer">
        <ng-datepicker [options]="exampleOptions" [(ngModel)]="date"></ng-datepicker>
        <i class="material-icons calendar">
          calendar_today
        </i>
      </span>
this.exampleOptions = {
        minYear: 1970,
        maxYear: 2030,
        displayFormat: 'MMM D[,] YYYY',
        barTitleFormat: 'MMMM YYYY',
        dayNamesFormat: 'dd',
        firstCalendarDay: 0, // 0 - Sunday, 1 - Monday
        minDate: new Date(Date.now() - 100), // Minimal selectable date
        maxDate: new Date(Date.now()),  // Maximal selectable date
        barTitleIfEmpty: 'Click to select a date',
        placeholder: 'Click to select a date', // HTML input placeholder attribute (default: '')
        addClass: 'form-control', // Optional, value to pass on to [ngClass] on the input field
        fieldId: 'my-date-picker', // ID to assign to the input field. Defaults to datepicker-<counter>
        useEmptyBarTitle: true, // Defaults to true. If set to false then barTitleIfEmpty will be disregarded and a date will always be shown
      };
@ghizoulo
Copy link

@kogden Have u found any solution for that? or the problem is because it is angular 6 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants