UNPKG

@koalarx/ui

Version:

Koala UI is a modern and accessible component library designed to speed up interface development in Angular projects. With simple integration and clear documentation, you can easily build robust and visually appealing applications.

21 lines (18 loc) 826 B
import * as i0 from '@angular/core'; import { ResourceRef } from '@angular/core'; import { InputFieldBase } from '@koalarx/ui/shared/components/input-field'; type SelectValue = string | number | boolean | null; interface SelectOption<TData = any> { label: string; value: SelectValue; data?: TData; } type SelectList<TData = any> = SelectOption<TData>[]; declare class Select extends InputFieldBase { options: i0.InputSignal<ResourceRef<SelectList<any>>>; onSelectChange(event: Event): void; static ɵfac: i0.ɵɵFactoryDeclaration<Select, never>; static ɵcmp: i0.ɵɵComponentDeclaration<Select, "kl-select", never, { "options": { "alias": "options"; "required": true; "isSignal": true; }; }, {}, never, ["[errors]"], true, never>; } export { Select }; export type { SelectList, SelectOption };