UNPKG

@favian/headwind-ui

Version:

Headless UI for Angular - Styleless Angular components to integrate with Tailwind CSS

31 lines (30 loc) 1.38 kB
import { DestroyRef, ElementRef, OnInit } from '@angular/core'; import { HeadwindSelectService } from '../../service/headwind-select.service'; import * as i0 from "@angular/core"; export declare class HeadwindOptionComponent implements OnInit { private readonly _destroyRef; private readonly _elementRef; private readonly _headwindSelectService; /** Value of option to apply to select */ value: any; constructor(_destroyRef: DestroyRef, _elementRef: ElementRef<HTMLElement>, _headwindSelectService: HeadwindSelectService); private _focused; get focused(): boolean; private _selected; get selected(): boolean; private _label?; /** Get displayable label. When label isn't set, it returns textContent of host element */ get label(): string; /** * Set label to display when option is selected * @param value - Label value */ set label(value: string); ngOnInit(): void; onHostClick(): void; onHostMouseEnter(): void; focus(): void; getBoundingClientRect(): DOMRect | undefined; static ɵfac: i0.ɵɵFactoryDeclaration<HeadwindOptionComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<HeadwindOptionComponent, "headwind-option", never, { "value": { "alias": "value"; "required": true; }; "label": { "alias": "label"; "required": false; }; }, {}, never, ["*"], true, never>; }