Skip to the content.

CellContents


interface CellContents {
    contentsIndex: number,
    textValue: string,
    wildcardIndex: number | null
}

This type is used to represent the values in a single cell of a [[StructureEntry]]. Initially, each cell contains a single cellContent which is split in several parts after a [[Wildcard]] is inserted in the cell.

Example

A cell containing the Timestamp ‘2023-06-15T22:00:00.000’. Initially the cellContents of that cell is the following:

[
	{
	contentsIndex: 0,
	textValue: '2023-06-15T22:00:00.000',
	wildcardIndex: null
	}
]

After a wildcard is inserted to replace the month in the timestamp. The cellContents are split and become:

[
	{
	contentsIndex: 0,
	textValue: '2023-',
	wildcardIndex: null
	},
	{
	contentsIndex: 1,
	textValue: '06',
	wildcardIndex: 0
	},
	{
	contentsIndex: 2,
	textValue: '-15T22:00:00.000',
	wildcardIndex: null
	}
]