UNPKG

@ng-bootstrap/ng-bootstrap

Version:
36 lines (35 loc) 1.28 kB
import { TemplateRef } from '@angular/core'; import { TranslationWidth } from '@angular/common'; import { DayTemplateContext } from './datepicker-day-template-context'; import { NgbDateStruct } from './ngb-date-struct'; /** * A configuration service for the [`NgbDatepicker`](#/components/datepicker/api#NgbDatepicker) component. * * You can inject this service, typically in your root component, and customize the values of its properties in * order to provide default values for all the datepickers used in the application. */ export declare class NgbDatepickerConfig { dayTemplate: TemplateRef<DayTemplateContext>; dayTemplateData: (date: NgbDateStruct, current?: { year: number; month: number; }) => any; footerTemplate: TemplateRef<any>; displayMonths: number; firstDayOfWeek: number; markDisabled: (date: NgbDateStruct, current?: { year: number; month: number; }) => boolean; minDate: NgbDateStruct; maxDate: NgbDateStruct; navigation: 'select' | 'arrows' | 'none'; outsideDays: 'visible' | 'collapsed' | 'hidden'; showWeekdays: boolean; showWeekNumbers: boolean; startDate: { year: number; month: number; }; weekdays: TranslationWidth | boolean; }