choices.js
Version:
A vanilla JS customisable text input/select box plugin
11 lines (8 loc) • 334 B
text/typescript
// eslint-disable-next-line import/no-cycle
import { InputChoice } from './input-choice';
export type EventChoiceValueType<B extends boolean> = B extends true ? string : EventChoice;
export interface EventChoice extends InputChoice {
element?: HTMLOptionElement | HTMLOptGroupElement;
groupValue?: string;
keyCode?: number;
}