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

Method deleteViews

packages/core/src/databus/logic/datasheet.ts:303–311  ·  view source on GitHub ↗

* Delete some views from the datasheet. * * @param saveOptions The options that will be passed to the data saver.

(viewIds: string[], saveOptions: ISaveOptions)

Source from the content-addressed store, hash-verified

301 * @param saveOptions The options that will be passed to the data saver.
302 */
303 public deleteViews(viewIds: string[], saveOptions: ISaveOptions): Promise<ICommandExecutionResult<void>> {
304 return this.doCommand<void>(
305 {
306 cmd: CollaCommandName.DeleteViews,
307 data: viewIds.map(viewId => ({ viewId })),
308 },
309 saveOptions,
310 );
311 }
312
313 /**
314 * Modify view property.

Callers 2

deleteMethod · 0.80
datasheet.test.tsFile · 0.80

Calls 2

doCommandMethod · 0.95
mapMethod · 0.45

Tested by

no test coverage detected