UNPKG

498 BTypeScriptView Raw
1import BaseComponent 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 /**
10 * Destroys an element's button.
11 */
12 dispose(): void;
13
14 static jQueryInterface: Button.jQueryInterface;
15
16 // static NAME: 'button';
17}
18
19declare namespace Button {
20 type jQueryInterface = (config?: 'toggle' | 'dispose') => void;
21}
22
23export default Button;