UNPKG

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