UNPKG

@3mo/select-field

Version:

A select field web component

29 lines 1.05 kB
import { SelectionListItem } from '@3mo/list'; export declare class Option<T> extends SelectionListItem { readonly requestSelectValueUpdate: EventDispatcher<void>; readonly role = "option"; selected: boolean; index?: number; value?: string; data?: T; multiple: boolean; inputText?: string; readonly preventClickOnSpace = true; dataMatches(data: T | undefined): boolean; get normalizedValue(): string | number | undefined; valueMatches(value: string | number | undefined): boolean; private normalizeValue; get text(): string; textMatches(text: string): boolean; static get styles(): import("@a11d/lit").CSSResult; protected get template(): import("lit-html").HTMLTemplateResult; protected get checkboxTemplate(): import("lit-html").HTMLTemplateResult; protected handleClick(): void; protected handleChange(value: boolean): void; } declare global { interface HTMLElementTagNameMap { 'mo-option': Option<unknown>; } } //# sourceMappingURL=Option.d.ts.map