UNPKG

@types/bootstrap

Version:
19 lines (14 loc) 566 B
import BaseComponent, { GetInstanceFactory, GetOrCreateInstanceFactory } from "./base-component"; declare class Button extends BaseComponent { /** * Toggles push state. Gives the button the appearance that it has been activated. */ toggle(): void; static getInstance: GetInstanceFactory<Button>; static getOrCreateInstance: GetOrCreateInstanceFactory<Button>; static jQueryInterface: Button.jQueryInterface; } declare namespace Button { type jQueryInterface = (config?: "toggle" | "dispose") => JQuery; } export default Button;