15 lines
		
	
	
		
			510 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			510 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| interface CheckboxOptions {
 | |
|     className?: string;
 | |
|     enabled?: boolean;
 | |
|     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 createCheckbox(opts?: CheckboxOptions): HTMLElement
 | |
| export function resolveCheckbox(container?: HTMLElement, legacy?: boolean): HTMLElement |