MCPcopy Create free account
hub / github.com/angular/components / addData

Method addData

src/material/tree/tree.spec.ts:738–752  ·  view source on GitHub ↗
(isSpecial: boolean = false)

Source from the content-addressed store, hash-verified

736 }
737
738 addData(isSpecial: boolean = false) {
739 const nextIndex = ++this.dataIndex;
740 let copiedData = this.data.slice();
741 copiedData.push(
742 new TestData(
743 `topping_${nextIndex}`,
744 `cheese_${nextIndex}`,
745 `base_${nextIndex}`,
746 [],
747 isSpecial,
748 ),
749 );
750
751 this.data = copiedData;
752 }
753}
754
755function getNodes(treeElement: Element): HTMLElement[] {

Callers 1

constructorMethod · 0.95

Calls 1

pushMethod · 0.65

Tested by

no test coverage detected