UNPKG

1.44 kBTypeScriptView Raw
1import { TemplateRef } from '@angular/core';
2import { DayTemplateContext } from './datepicker-day-template-context';
3import { NgbDateStruct } from './ngb-date-struct';
4import * as i0 from "@angular/core";
5/**
6 * A configuration service for the [`NgbDatepicker`](#/components/datepicker/api#NgbDatepicker) component.
7 *
8 * You can inject this service, typically in your root component, and customize the values of its properties in
9 * order to provide default values for all the datepickers used in the application.
10 */
11export declare class NgbDatepickerConfig {
12 dayTemplate: TemplateRef<DayTemplateContext>;
13 dayTemplateData: (date: NgbDateStruct, current?: {
14 year: number;
15 month: number;
16 }) => any;
17 footerTemplate: TemplateRef<any>;
18 displayMonths: number;
19 firstDayOfWeek: number;
20 markDisabled: (date: NgbDateStruct, current?: {
21 year: number;
22 month: number;
23 }) => boolean;
24 minDate: NgbDateStruct;
25 maxDate: NgbDateStruct;
26 navigation: 'select' | 'arrows' | 'none';
27 outsideDays: 'visible' | 'collapsed' | 'hidden';
28 showWeekNumbers: boolean;
29 startDate: {
30 year: number;
31 month: number;
32 day?: number;
33 };
34 weekdays: Exclude<Intl.DateTimeFormatOptions['weekday'], undefined> | boolean;
35 static ɵfac: i0.ɵɵFactoryDeclaration<NgbDatepickerConfig, never>;
36 static ɵprov: i0.ɵɵInjectableDeclaration<NgbDatepickerConfig>;
37}