UNPKG

840 BJavaScriptView Raw
1/* -----------------------------------------------------------------------------
2| Copyright (c) Jupyter Development Team.
3| Distributed under the terms of the Modified BSD License.
4|----------------------------------------------------------------------------*/
5import { Widget } from '@lumino/widgets';
6/**
7 * The spinner class.
8 */
9export class Spinner extends Widget {
10 /**
11 * Construct a spinner widget.
12 */
13 constructor() {
14 super();
15 this.addClass('jp-Spinner');
16 this.node.tabIndex = -1;
17 const content = document.createElement('div');
18 content.className = 'jp-SpinnerContent';
19 this.node.appendChild(content);
20 }
21 /**
22 * Handle `'activate-request'` messages.
23 */
24 onActivateRequest(msg) {
25 this.node.focus();
26 }
27}
28//# sourceMappingURL=spinner.js.map
\No newline at end of file