MCPcopy Create free account
hub / github.com/pacexy/flow / toggle

Method toggle

apps/reader/src/models/reader.ts:229–232  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

227 }
228
229 toggle(id: string) {
230 const item = find(this.nav?.toc, id) as INavItem
231 if (item) item.expanded = !item.expanded
232 }
233
234 toggleResult(id: string) {
235 const item = find(this.results, id)

Callers 3

TocRowFunction · 0.80
setColorSchemeFunction · 0.80
useColorSchemeFunction · 0.80

Calls 1

findFunction · 0.90

Tested by

no test coverage detected