lucy-calendar
Version:
LucyCalendar is a powerful and flexible date picker library for Angular applications, specifically designed for Ethiopian dates. It provides a user-friendly interface for selecting dates and supports various customization options to fit your needs.
21 lines (20 loc) • 1.01 kB
TypeScript
import { ElementRef, EventEmitter, OnInit } from '@angular/core';
import * as i0 from "@angular/core";
export declare class DropdownComponent<T> implements OnInit {
options: T[];
selected: T;
selectedChange: EventEmitter<T>;
/**
* Optional function to convert an option to a displayable string.
*/
displayFn?: (option: T) => string;
dropdownOpen: boolean;
dropdownContainer: ElementRef;
constructor();
ngOnInit(): void;
toggleDropdown(event: Event): void;
onOptionClick(option: T, index: number): void;
onClickOutside(event: Event): void;
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownComponent<any>, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownComponent<any>, "lucy-dropdown", never, { "options": { "alias": "options"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "displayFn": { "alias": "displayFn"; "required": false; }; }, { "selectedChange": "selectedChange"; }, never, never, true, never>;
}