ui-lib/lib/ui/checkbox.d.ts
2023-04-21 17:17:56 +08:00

18 lines
620 B
TypeScript

interface CheckboxOptions {
className?: string;
enabled?: boolean;
name?: string;
tabIndex?: Number;
type?: string;
label?: string | HTMLElement;
checked?: boolean;
imageHeight?: Number;
checkedNode?: HTMLElement;
uncheckedNode?: HTMLElement;
customerAttributes?: { [key: string]: string };
onchange?: (this: HTMLInputElement, ev: Event) => any;
}
export function createRadiobox(opts?: CheckboxOptions): HTMLElement
export function createCheckbox(opts?: CheckboxOptions): HTMLElement
export function resolveCheckbox(container?: HTMLElement, legacy?: boolean): HTMLElement