Debian Codegraph @

jupyter-widgets-controls/lib/widget_button.d.ts

raw
1 /// <reference types="backbone" />
2 import { DOMWidgetView, StyleModel } from '@jupyter-widgets/base';
3 import { CoreDOMWidgetModel } from './widget_core';
4 export declare class ButtonStyleModel extends StyleModel {
5 defaults(): Backbone.ObjectHash;
6 static styleProperties: {
7 button_color: {
8 selector: string;
9 attribute: string;
10 default: any;
11 };
12 font_family: {
13 selector: string;
14 attribute: string;
15 default: string;
16 };
17 font_size: {
18 selector: string;
19 attribute: string;
20 default: string;
21 };
22 font_style: {
23 selector: string;
24 attribute: string;
25 default: string;
26 };
27 font_variant: {
28 selector: string;
29 attribute: string;
30 default: string;
31 };
32 font_weight: {
33 selector: string;
34 attribute: string;
35 default: string;
36 };
37 text_color: {
38 selector: string;
39 attribute: string;
40 default: string;
41 };
42 text_decoration: {
43 selector: string;
44 attribute: string;
45 default: string;
46 };
47 };
48 }
49 export declare class ButtonModel extends CoreDOMWidgetModel {
50 defaults(): Backbone.ObjectHash;
51 }
52 export declare class ButtonView extends DOMWidgetView {
53 /**
54 * Called when view is rendered.
55 */
56 render(): void;
57 /**
58 * Update the contents of this view
59 *
60 * Called when the model is changed. The model may have been
61 * changed by another view or by a state update from the back-end.
62 */
63 update(): void;
64 update_button_style(): void;
65 set_button_style(): void;
66 /**
67 * Dictionary of events and handlers
68 */
69 events(): {
70 [e: string]: string;
71 };
72 /**
73 * Handles when the button is clicked.
74 */
75 _handle_click(event: MouseEvent): void;
76 preinitialize(): void;
77 el: HTMLButtonElement;
78 static class_map: {
79 primary: string[];
80 success: string[];
81 info: string[];
82 warning: string[];
83 danger: string[];
84 };
85 }
86 //# sourceMappingURL=widget_button.d.ts.map