UNPKG

566 BTypeScriptView Raw
1import BaseComponent, { GetInstanceFactory, GetOrCreateInstanceFactory } from "./base-component";
2
3declare class Button extends BaseComponent {
4 /**
5 * Toggles push state. Gives the button the appearance that it has been activated.
6 */
7 toggle(): void;
8
9 static getInstance: GetInstanceFactory<Button>;
10 static getOrCreateInstance: GetOrCreateInstanceFactory<Button>;
11 static jQueryInterface: Button.jQueryInterface;
12}
13
14declare namespace Button {
15 type jQueryInterface = (config?: "toggle" | "dispose") => JQuery;
16}
17
18export default Button;