MCPcopy Create free account
hub / github.com/apitable/apitable / cellValueToString

Method cellValueToString

packages/core/src/model/field/url_field.ts:78–86  ·  view source on GitHub ↗
(cellValue: ICellValue)

Source from the content-addressed store, hash-verified

76 }
77
78 override cellValueToString(cellValue: ICellValue): string | null {
79 if (cellValue === null) {
80 return null;
81 }
82
83 const cv = [cellValue].flat();
84
85 return (cv as IHyperlinkSegment[]).map(seg => seg?.text || seg?.title).join('') || null;
86 }
87
88 override validateProperty() {
89 return URLField.propertySchema.validate(this.field.property);

Callers 15

calcCellValueAndStringFunction · 0.45
eqFunction · 0.45
isMeetFilterFunction · 0.45
cellValueToOpenValueFunction · 0.45
cellValueToStdValueFunction · 0.45
statSumFunction · 0.45
statAverageFunction · 0.45
statMaxFunction · 0.45

Calls 2

joinMethod · 0.65
mapMethod · 0.45

Tested by

no test coverage detected