UNPKG

ng2-date-picker

Version:

[![Build Status](https://travis-ci.org/vlio20/angular-datepicker.svg?branch=master)](https://travis-ci.org/vlio20/angular-datepicker) [![Backers on Open Collective](https://opencollective.com/angular-datepicker/backers/badge.svg)](#backers) [![Sponsor

18 lines (17 loc) 1.02 kB
import { Moment } from 'moment'; import { UtilsService } from '../common/services/utils/utils.service'; import { IMonth } from './month.model'; import { IMonthCalendarConfig, IMonthCalendarConfigInternal } from './month-calendar-config'; export declare class MonthCalendarService { private utilsService; readonly DEFAULT_CONFIG: IMonthCalendarConfigInternal; constructor(utilsService: UtilsService); getConfig(config: IMonthCalendarConfig): IMonthCalendarConfigInternal; generateYear(config: IMonthCalendarConfig, year: Moment, selected?: Moment[]): IMonth[][]; isMonthDisabled(date: Moment, config: IMonthCalendarConfig): boolean; shouldShowLeft(min: Moment, currentMonthView: Moment): boolean; shouldShowRight(max: Moment, currentMonthView: Moment): boolean; getHeaderLabel(config: IMonthCalendarConfig, year: Moment): string; getMonthBtnText(config: IMonthCalendarConfig, month: Moment): string; getMonthBtnCssClass(config: IMonthCalendarConfig, month: Moment): string; }