- buttonCreate(title, onClick?): {
set disabled(value: boolean);
get el(): HTMLButtonElement;
title: null | string;
click(): void;
dispose(deleteElement?: boolean): void;
onClick(handler?: (() => void)): void;
} Parameters
- title: string
Optional
onClick: (() => void)
Returns {
set disabled(value: boolean);
get el(): HTMLButtonElement;
title: null | string;
click(): void;
dispose(deleteElement?: boolean): void;
onClick(handler?: (() => void)): void;
}
set disabled(value: boolean): void
get el(): HTMLButtonElement
get title(): null | string
set title(value: string): void
click:function
- click(): void
Returns void
dispose:function
- dispose(deleteElement?): void
Parameters
- deleteElement: boolean = false
Returns void
onClick:function
- onClick(handler?): void
Parameters
Optional
handler: (() => void)
Returns void
Creates a BUTTON element, wrapping it via button and returning it.