MCPcopy
hub / github.com/exceljs/exceljs / Column

Class Column

lib/doc/table.js:4–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2const colCache = require('../utils/col-cache');
3
4class Column {
5 // wrapper around column model, allowing access and manipulation
6 constructor(table, column, index) {
7 this.table = table;
8 this.column = column;
9 this.index = index;
10 }
11
12 _set(name, value) {
13 this.table.cacheState();
14 this.column[name] = value;
15 }
16
17 /* eslint-disable lines-between-class-members */
18 get name() {
19 return this.column.name;
20 }
21 set name(value) {
22 this._set('name', value);
23 }
24
25 get filterButton() {
26 return this.column.filterButton;
27 }
28 set filterButton(value) {
29 this.column.filterButton = value;
30 }
31
32 get style() {
33 return this.column.style;
34 }
35 set style(value) {
36 this.column.style = value;
37 }
38
39 get totalsRowLabel() {
40 return this.column.totalsRowLabel;
41 }
42 set totalsRowLabel(value) {
43 this._set('totalsRowLabel', value);
44 }
45
46 get totalsRowFunction() {
47 return this.column.totalsRowFunction;
48 }
49 set totalsRowFunction(value) {
50 this._set('totalsRowFunction', value);
51 }
52
53 get totalsRowResult() {
54 return this.column.totalsRowResult;
55 }
56 set totalsRowResult(value) {
57 this._set('totalsRowResult', value);
58 }
59
60 get totalsRowFormula() {
61 return this.column.totalsRowFormula;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…