xui
Version:
xUI Components for Angular
18 lines (17 loc) • 540 B
TypeScript
import { InjectionToken } from '@angular/core';
import { Observable } from 'rxjs';
export type SelectSize = 'large' | 'small';
export type SelectColor = 'light' | 'dark';
export type SelectValue = string | number | null;
export interface SelectItem {
label: string;
value: SelectValue;
}
export declare const SELECT_ACCESSOR: InjectionToken<SelectAccessor>;
export interface SelectAccessor {
color: SelectColor;
value: SelectValue;
viewValue: string | undefined;
onChange$: Observable<unknown>;
close(): void;
}