SheetSchema is a library for working with Google Sheets in Google Apps Script. This project provides a convenient way to structure data in sheets.
- Откройте свой проект в Google Apps Script Dashboard.
- Copy the content of the
index.js
file and paste it into a new file in yourGoogle Apps Script
project.
const sheet = SpreadsheetApp.getActiveSheet();
const fields = [ 'time', null, { name: 'id' } ];
let schema = SheetSchema.newSchema(fields);
schema = SheetSchema.insertSchema(sheet, schema);
const sheet = SpreadsheetApp.getActiveSheet();
let schema = SheetSchema.getSchemaBySheet(sheet);
const sheet = SpreadsheetApp.getActiveSheet();
let schema = SheetSchema.removeSchema(sheet);
- 3.0.0: Completely updated code structure. Fixed bugs. Improved JSDoc documentation.
- 2.0.0: Rethought code structure.
- 1.0.0: Release.