Headless UI
Use any preferred state management library
CellData
export type CellData = {
/**
* The value the user entered in the cell. e.g, 1234 , 'Hello' , or =NOW() Note: Dates, Times and DateTimes are represented as doubles in serial number format.
* errorValue: Captures data validation errors
*/
userEnteredValue?: ExtendedValue;
/**
* The effective value of the cell. For cells with formulas, this is the calculated value. For cells with literals, this is the same as the userEnteredValue. This field is read-only.
*
* errorValue: Capture errors from formula calculation
*/
effectiveValue?: ExtendedValue;
/**
* The formatted value of the cell. This is the value as it's shown to the user. This field is read-only.
*/
formattedValue?: string;
/**
* Text format runs
*/
textFormatRuns?: TextFormatRun[];
/**
* Hyperlink URL
*/
hyperlink?: string;
/**
* Validation applied to a cell
*/
dataValidation?: DataValidationRule;
/**
* Image url
*/
imageUrl?: string;
/**
* Cell meta style
*/
metaType?: "people";
/**
* The format the user entered for the cell. When writing, the new format will be merged with the existing format.
*/
userEnteredFormat?: CellFormat;
/**
* The effective format being used by the cell. This includes the results of applying any conditional formatting and, if the cell contains a formula, the computed number format. If the effective format is the default format, effective format will not be written. This field is read-only.
*/
effectiveFormat?: CellFormat;
};Using your own state
Custom CellData
Last updated