-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
/
headerfooter.ts
52 lines (45 loc) · 1.13 KB
/
headerfooter.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/* -----------------------------------------------------------------------------
| Copyright (c) Jupyter Development Team.
| Distributed under the terms of the Modified BSD License.
|----------------------------------------------------------------------------*/
import { Widget } from '@lumino/widgets';
/**
* The CSS class added to the cell header.
*/
const CELL_HEADER_CLASS = 'jp-CellHeader';
/**
* The CSS class added to the cell footer.
*/
const CELL_FOOTER_CLASS = 'jp-CellFooter';
/**
* The interface for a cell header.
*/
export interface ICellHeader extends Widget {}
/**
* Default implementation of a cell header.
*/
export class CellHeader extends Widget implements ICellHeader {
/**
* Construct a new cell header.
*/
constructor() {
super();
this.addClass(CELL_HEADER_CLASS);
}
}
/**
* The interface for a cell footer.
*/
export interface ICellFooter extends Widget {}
/**
* Default implementation of a cell footer.
*/
export class CellFooter extends Widget implements ICellFooter {
/**
* Construct a new cell footer.
*/
constructor() {
super();
this.addClass(CELL_FOOTER_CLASS);
}
}