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

Method clone

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

Source from the content-addressed store, hash-verified

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

Callers 1

withExpandedKeysMethod · 0.95

Calls 1

cloneMethod · 0.65

Tested by

no test coverage detected