1 | import BaseComponent, { GetInstanceFactory, GetOrCreateInstanceFactory } from "./base-component";
|
2 |
|
3 | declare 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 |
|
14 | declare namespace Button {
|
15 | type jQueryInterface = (config?: "toggle" | "dispose") => JQuery;
|
16 | }
|
17 |
|
18 | export default Button;
|