angular-weblineindia-date-picker
Version:
Date Picker component built in AngularJS to select date and time. Supports Angular 9 version.
19 lines (18 loc) • 1.05 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;
private validateConfig;
}