MCPcopy Index your code
hub / github.com/rapi-doc/RapiDoc / toggleObjectExpand

Method toggleObjectExpand

src/components/schema-table.js:354–365  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

352 }
353
354 toggleObjectExpand(e) {
355 const rowEl = e.target.closest('.tr');
356 if (rowEl.classList.contains('expanded')) {
357 rowEl.classList.add('collapsed');
358 rowEl.classList.remove('expanded');
359 e.target.innerText = '+';
360 } else {
361 rowEl.classList.remove('collapsed');
362 rowEl.classList.add('expanded');
363 e.target.innerText = '-';
364 }
365 }
366}
367customElements.define('schema-table', SchemaTable);

Callers 1

handleAllEventsMethod · 0.95

Calls 3

containsMethod · 0.45
addMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected