/*! * Copyright Adaptavist 2022 (c) All rights reserved */ import { Color } from './Color'; import { ColorStyle } from './ColorStyle'; import { DataSourceSheetProperties } from './DataSourceSheetProperties'; import { GridProperties } from './GridProperties'; export interface SheetProperties { /** * The ID of the sheet. Must be non-negative. This field cannot be changed once set. */ sheetId: number; /** * The name of the sheet. */ title: string; /** * The index of the sheet within the spreadsheet. When adding or updating sheet properties, if this field is excluded then the sheet is added or moved to the end of the sheet list. When updating sheet indices or inserting sheets, movement is considered in 'before the move' indexes. For example, if there were 3 sheets (S1, S2, S3) in order to move S1 ahead of S2 the index would have to be set to 2. A sheet index update request is ignored if the requested index is identical to the sheets current index or if the requested new index is equal to the current sheet index + 1. */ index: number; /** * The type of sheet. Defaults to GRID . This field cannot be changed once set. ** SHEET_TYPE_UNSPECIFIED - Default value, do not use. ** GRID - The sheet is a grid. ** OBJECT - The sheet has no grid and instead has an object like a chart or image. ** DATA_SOURCE - The sheet connects with an external DataSource and shows the preview of data. */ sheetType: 'SHEET_TYPE_UNSPECIFIED' | 'GRID' | 'OBJECT' | 'DATA_SOURCE'; /** * Additional properties of the sheet if this sheet is a grid. (If the sheet is an object sheet, containing a chart or image, then this field will be absent.) When writing it is an error to set any grid properties on non-grid sheets. * * If this sheet is a DATA_SOURCE sheet, this field is output only but contains the properties that reflect how a data source sheet is rendered in the UI, e.g. rowCount . */ gridProperties: GridProperties; /** * True if the sheet is hidden in the UI, false if it's visible. */ hidden?: boolean; /** * The color of the tab in the UI. */ tabColor?: Color; /** * The color of the tab in the UI. If tabColor is also set, this field takes precedence. */ tabColorStyle?: ColorStyle; /** * True if the sheet is an RTL sheet instead of an LTR sheet. */ rightToLeft?: boolean; /** * Output only. If present, the field contains DATA_SOURCE sheet specific properties. */ dataSourceSheetProperties?: DataSourceSheetProperties; } //# sourceMappingURL=SheetProperties.d.ts.map