UNPKG

1.25 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';
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 };
33 weekdays: TranslationWidth | boolean;
34}