MCPcopy Create free account
hub / github.com/adobe/react-spectrum / clone

Method clone

packages/react-aria-components/src/Table.tsx:408–416  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

406 }
407
408 clone() {
409 let collection = super.clone();
410 collection.headerRows = this.headerRows;
411 collection.columns = this.columns;
412 collection.rows = this.rows;
413 collection.rowHeaderColumnKeys = this.rowHeaderColumnKeys;
414 collection.head = this.head;
415 return collection;
416 }
417
418 getTextValue(key: Key): string {
419 let row = this.getItem(key);

Callers 1

withExpandedKeysMethod · 0.95

Calls 1

cloneMethod · 0.65

Tested by

no test coverage detected