ng2-date-picker
Version:
[](https://travis-ci.org/vlio20/angular-datepicker) [](#backers) [![Sponsor
18 lines (17 loc) • 1.02 kB
TypeScript
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;
}