sober
Version:
Sober is a library of UI components designed with reference to Material You.
28 lines (27 loc) • 595 B
TypeScript
type Parent = {
value: string;
} & HTMLElement;
type Item = {
selected: boolean;
value: string;
} & HTMLElement;
export declare class Select<P extends Parent, I extends Item> {
list: I[];
select?: I;
selectValue?: string;
flag: boolean;
constructor(options: {
context: P;
class: {
new (): I;
};
slot: HTMLSlotElement;
});
get value(): string;
set value(value: string);
get selectedIndex(): number;
onUpdate?: (old?: I) => void;
onSelect?: () => void;
onSlotChange?: () => void;
}
export {};