ngx-gem-spaas
Version:
This library contains services, components, images and styles to provide a unified look and way-of-working throughout GEM SPaaS.
22 lines (21 loc) • 1.13 kB
TypeScript
import { DateTime } from 'luxon';
import { DateModel } from "../_models/date.model";
import { DateService } from "../_services/date.service";
import { BaseComponent } from "ngx-gem-spaas";
import * as i0 from "@angular/core";
/** An inline calendar which is hooked up directly to the date service */
export declare class CalendarComponent extends BaseComponent {
private dateService;
/** The title (H1) to be displayed above the calendar */
title: string;
/** A custom function to limit which dates can be chosen.
* Takes DateTime as input and should return a boolean. */
dateConstraint: (selectedDate: DateTime) => boolean;
curDate: DateModel;
selDate: (DateTime & Date) | null;
constructor(dateService: DateService);
private getDate;
onChangeDate(e: any): void;
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarComponent, "spaas-calendar", never, { "title": { "alias": "title"; "required": false; }; "dateConstraint": { "alias": "dateConstraint"; "required": false; }; }, {}, never, never, false, never>;
}