Skip to content

cupertino-files / tablesOf

Function: tablesOf() ​

tablesOf(store, drawableIds?): TableModel[]

Defined in: src/tst/tables.ts:4743

Enumerate the tables of a document, optionally scoped to a sheet's drawables.

With drawableIds the result follows that list's order. Without it the walk is storage order — the order archives sit in their components, which puts objects created this session before or after loaded ones arbitrarily. Callers that need document order ([0] meaning "the first table on the page") should go through the app document's tables(), which enumerates anchors first and falls back here for anything unreachable.

Parameters ​

store ​

ObjectStore

drawableIds? ​

readonly bigint[]

Returns ​

TableModel[]

MIT licensed. Independently made — not by Apple in California. Not affiliated with or endorsed by Apple Inc.