UNPKG

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