select-pure
Version:
Custom JavaScript <select> component. Easy-to-use, accessible, mobile friendly and super efficient
32 lines • 980 B
TypeScript
import { LitElement } from "lit";
export declare class OptionPure extends LitElement {
static get styles(): import("lit").CSSResultGroup;
isSelected: boolean;
isDisabled: boolean;
isHidden: boolean;
optionValue: string;
displayedLabel: string;
optionIndex: number;
private onSelect?;
private onReady?;
connectedCallback(): void;
getOption(): {
label: string;
value: string;
select: () => void;
unselect: () => void;
selected: boolean;
disabled: boolean;
hidden: boolean;
};
select(): void;
unselect(): void;
setOnReadyCallback(onReadyCallback: Function, optionIndex: number): void;
setOnSelectCallback(callback: Function): void;
render(): import("lit-html").TemplateResult<1>;
private assignDisplayedLabel;
private fireOnReadyCallback;
private fireOnSelectCallback;
private fireOnSelectIfEnterPressed;
}
//# sourceMappingURL=Option.d.ts.map