UNPKG

ngx-bootstrap

Version:
62 lines (61 loc) 1.93 kB
import { ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, Renderer2, SimpleChanges, ViewContainerRef } from '@angular/core'; import { ComponentLoaderFactory } from 'ngx-bootstrap/component-loader'; import { Subscription } from 'rxjs'; import { BsDaterangepickerInlineConfig } from './bs-daterangepicker-inline.config'; import { DatepickerDateCustomClasses } from './models'; export declare class BsDaterangepickerInlineDirective implements OnInit, OnDestroy, OnChanges { _config: BsDaterangepickerInlineConfig; private _elementRef; _bsValue: Date[]; /** * Initial value of datepicker */ bsValue: Date[]; /** * Config object for datepicker */ bsConfig: Partial<BsDaterangepickerInlineConfig>; /** * Indicates whether datepicker is enabled or not */ isDisabled: boolean; /** * Minimum date which is available for selection */ minDate: Date; /** * Maximum date which is available for selection */ maxDate: Date; /** * Date custom classes */ dateCustomClasses: DatepickerDateCustomClasses[]; /** * Disable specific days, e.g. [0,6] will disable all Saturdays and Sundays */ daysDisabled?: number[]; /** * Disable specific dates */ datesDisabled: Date[]; /** * Disable specific dates */ datesEnabled: Date[]; /** * Emits when daterangepicker value has been changed */ bsValueChange: EventEmitter<Date[]>; protected _subs: Subscription[]; private _datepicker; private _datepickerRef; constructor(_config: BsDaterangepickerInlineConfig, _elementRef: ElementRef, _renderer: Renderer2, _viewContainerRef: ViewContainerRef, cis: ComponentLoaderFactory); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; /** * Set config for datepicker */ setConfig(): void; ngOnDestroy(): any; }