type
stringclasses
7 values
content
stringlengths
4
9.55k
repo
stringlengths
7
96
path
stringlengths
4
178
language
stringclasses
1 value
ArrowFunction
() => createComponent(MissingAllRowDefsCdkTableApp).detectChanges()
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
() => { setupTableTestApp(UndefinedColumnsCdkTableApp); // Header should be empty since there are no columns to display. const headerRow = getHeaderRows(tableElement)[0]; expect(headerRow.textContent).toBe(''); // Rows should be empty since there are no columns to display. const rows = getRow...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
() => { setupTableTestApp(DynamicColumnDefinitionsCdkTableApp); // Add a new column and expect it to show up in the table let columnA = 'columnA'; component.dynamicColumns.push(columnA); fixture.detectChanges(); expectTableToMatchContent(tableElement, [ [columnA], // Header row [co...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
() => { setupTableTestApp(OuterTableApp, [WrapperCdkTableApp]); // The first two columns were defined in the wrapped table component as content children, // while the injected columns were provided to the wrapped table from the outer component. // A special row was provided with a when predicate that ...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
() => { setupTableTestApp(OuterTableApp, [WrapperCdkTableApp]); fixture.componentInstance.dataSource.data = []; fixture.detectChanges(); expect(tableElement.textContent).toContain('No data'); }
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
() => { it('should be able to display different row templates based on the row data', () => { setupTableTestApp(WhenRowCdkTableApp); let data = component.dataSource.data; expectTableToMatchContent(tableElement, [ ['Column A', 'Column B', 'Column C'], [data[0].a, data[0].b, data[0]...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
() => { setupTableTestApp(WhenRowCdkTableApp); let data = component.dataSource.data; expectTableToMatchContent(tableElement, [ ['Column A', 'Column B', 'Column C'], [data[0].a, data[0].b, data[0].c], ['index_1_special_row'], ['c3_special_row'], [data[3].a, data...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
() => { const whenRowWithoutDefaultFixture = createComponent(WhenRowWithoutDefaultCdkTableApp); const data = whenRowWithoutDefaultFixture.componentInstance.dataSource.data; expect(() => { try { whenRowWithoutDefaultFixture.detectChanges(); flush(); ...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
() => { try { whenRowWithoutDefaultFixture.detectChanges(); flush(); } catch { flush(); } }
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
() => { let whenFixture = createComponent(WhenRowMultipleDefaultsCdkTableApp); expect(() => { whenFixture.detectChanges(); flush(); }).toThrowError(getTableMultipleDefaultRowDefsError().message); }
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
() => { whenFixture.detectChanges(); flush(); }
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
() => { it('should be able to render multiple rows per data object', () => { setupTableTestApp(WhenRowCdkTableApp); component.multiTemplateDataRows = true; fixture.detectChanges(); const data = component.dataSource.data; expectTableToMatchContent(tableElement, [ ...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
() => { setupTableTestApp(WhenRowCdkTableApp); component.multiTemplateDataRows = true; fixture.detectChanges(); const data = component.dataSource.data; expectTableToMatchContent(tableElement, [ ['Column A', 'Column B', 'Column C'], [data[0].a, data[0].b, dat...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
() => { setupTableTestApp(WhenRowCdkTableApp); component.multiTemplateDataRows = true; component.showIndexColumns(); fixture.detectChanges(); expectTableToMatchContent(tableElement, [ ['Index', 'Data Index', 'Render Index'], ['', '0', '0'], ['', '1...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
() => { setupTableTestApp(WhenRowCdkTableApp); component.multiTemplateDataRows = true; component.showIndexColumns(); const obj = {value: true}; component.dataSource.data = [obj, obj, obj, obj]; fixture.detectChanges(); expectTableToMatchCon...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
() => { expect(() => { setupTableTestApp(CoercedMultiTemplateDataRows); fixture.detectChanges(); }).not.toThrow(); }
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
() => { setupTableTestApp(CoercedMultiTemplateDataRows); fixture.detectChanges(); }
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
element => { expect(element.classList.contains('cdk-table-sticky')).toBe(false); expectStickyBorderClass(element); expect(element.style.position).toBe(''); expect(element.style.zIndex || '0').toBe('0'); ['top', 'bottom', 'left', 'right'].forEach(d => { expect(element.s...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
d => { expect(element.style[d] || 'unset') .withContext(`Expected ${d} to be unset`).toBe('unset'); }
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
d => { const directionValue = directions[d]; if (!directionValue) { // If no expected position for this direction, must either be unset or empty string // If no expected position for this direction, must either be unset or empty string expect(element.style[d] || 'unset') ...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
d => { const stickyClass = `cdk-table-sticky-border-elem-${d}`; if (directions[d]) { expect(element.classList).toContain(stickyClass); } else { expect(element.classList).not.toContain(stickyClass); } }
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
() => { setupTableTestApp(StickyFlexLayoutCdkTableApp); headerRows = getHeaderRows(tableElement); footerRows = getFooterRows(tableElement); dataRows = getRows(tableElement); }
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
() => { component.stickyHeaders = ['header-1', 'header-3']; fixture.detectChanges(); flushMicrotasks(); expectStickyStyles(headerRows[0], '100', {top: '0px'}); expectStickyBorderClass(headerRows[0]); expectNoStickyStyles([headerRows[1]]); expectStickyStyles( ...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
() => { component.stickyFooters = ['footer-1', 'footer-3']; fixture.detectChanges(); flushMicrotasks(); expectStickyStyles( footerRows[0], '10', {bottom: footerRows[1].getBoundingClientRect().height + 'px'}); expectStickyBorderClass(footerRows[0], {bottom: true}); ...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
() => { component.stickyFooters = ['footer-3']; fixture.detectChanges(); flushMicrotasks(); expectStickyStyles(footerRows[2], '10', {bottom: '0px'}); expectStickyBorderClass(footerRows[2], {bottom: true}); expectNoStickyStyles([footerRows[0], footerRows[1]]); }
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
() => { component.stickyStartColumns = ['column-1', 'column-3']; fixture.detectChanges(); flushMicrotasks(); headerRows.forEach(row => { let cells = getHeaderCells(row); expectStickyStyles(cells[0], '1', {left: '0px'}); expectStickyBorderClass(cells[0]); ...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
row => { let cells = getHeaderCells(row); expectStickyStyles(cells[0], '1', {left: '0px'}); expectStickyBorderClass(cells[0]); expectStickyStyles(cells[2], '1', {left: '20px'}); expectStickyBorderClass(cells[2], {left: true}); expectNoStickyStyles([cells[1], ...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
row => { let cells = getCells(row); expectStickyStyles(cells[0], '1', {left: '0px'}); expectStickyBorderClass(cells[0]); expectStickyStyles(cells[2], '1', {left: '20px'}); expectStickyBorderClass(cells[2], {left: true}); expectNoStickyStyles([cells[1], cells[...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
row => { let cells = getFooterCells(row); expectStickyStyles(cells[0], '1', {left: '0px'}); expectStickyBorderClass(cells[0]); expectStickyStyles(cells[2], '1', {left: '20px'}); expectStickyBorderClass(cells[2], {left: true}); expectNoStickyStyles([cells[1], ...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
row => expectNoStickyStyles(getHeaderCells(row))
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
row => expectNoStickyStyles(getCells(row))
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
row => expectNoStickyStyles(getFooterCells(row))
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
() => { component.stickyEndColumns = ['column-4', 'column-6']; fixture.detectChanges(); flushMicrotasks(); headerRows.forEach(row => { let cells = getHeaderCells(row); expectStickyStyles(cells[5], '1', {right: '0px'}); expectStickyBorderClass(cells[5]); ...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
row => { let cells = getHeaderCells(row); expectStickyStyles(cells[5], '1', {right: '0px'}); expectStickyBorderClass(cells[5]); expectStickyStyles(cells[3], '1', {right: '20px'}); expectStickyBorderClass(cells[3], {right: true}); expectNoStickyStyles([cells[0...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
row => { let cells = getCells(row); expectStickyStyles(cells[5], '1', {right: '0px'}); expectStickyBorderClass(cells[5]); expectStickyStyles(cells[3], '1', {right: '20px'}); expectStickyBorderClass(cells[3], {right: true}); expectNoStickyStyles([cells[0], cel...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
row => { let cells = getFooterCells(row); expectStickyStyles(cells[5], '1', {right: '0px'}); expectStickyBorderClass(cells[5]); expectStickyStyles(cells[3], '1', {right: '20px'}); expectStickyBorderClass(cells[3], {right: true}); expectNoStickyStyles([cells[0...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
() => { component.dir = 'rtl'; component.stickyStartColumns = ['column-1', 'column-2']; component.stickyEndColumns = ['column-5', 'column-6']; fixture.detectChanges(); flushMicrotasks(); const firstColumnWidth = getHeaderCells(headerRows[0])[0].getBoundingClientRect().w...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
row => { let cells = getCells(row); expectStickyStyles(cells[0], '1', {right: '0px'}); expectStickyBorderClass(cells[0]); expectStickyStyles(cells[1], '1', {right: `${firstColumnWidth}px`}); expectStickyBorderClass(cells[1], {right: true}); expectStickyStyles...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
() => { component.stickyHeaders = ['header-1']; component.stickyFooters = ['footer-3']; component.stickyStartColumns = ['column-1']; component.stickyEndColumns = ['column-6']; fixture.detectChanges(); flushMicrotasks(); let headerCells = getHeaderCells(headerRow...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
row => { let cells = getCells(row); expectStickyStyles(cells[0], '1', {left: '0px'}); expectStickyBorderClass(cells[0], {left: true}); expectStickyStyles(cells[5], '1', {right: '0px'}); expectStickyBorderClass(cells[5], {right: true}); expectNoStickyStyles([c...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
row => expectNoStickyStyles([row, ...getHeaderCells(row)])
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
row => expectNoStickyStyles([row, ...getCells(row)])
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
row => expectNoStickyStyles([row, ...getFooterCells(row)])
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
() => { setupTableTestApp(StickyNativeLayoutCdkTableApp); headerRows = getHeaderRows(tableElement); footerRows = getFooterRows(tableElement); dataRows = getRows(tableElement); }
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
() => { component.stickyHeaders = ['header-1', 'header-3']; fixture.detectChanges(); flushMicrotasks(); getHeaderCells(headerRows[0]).forEach(cell => { expectStickyStyles(cell, '100', {top: '0px'}); expectStickyBorderClass(cell); }); const firstHeade...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
cell => { expectStickyStyles(cell, '100', {top: '0px'}); expectStickyBorderClass(cell); }
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
cell => { expectStickyStyles(cell, '100', {top: firstHeaderHeight + 'px'}); expectStickyBorderClass(cell, {top: true}); }
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
() => { component.stickyFooters = ['footer-1', 'footer-3']; fixture.detectChanges(); flushMicrotasks(); getFooterCells(footerRows[2]).forEach(cell => { expectStickyStyles(cell, '10', {bottom: '0px'}); expectStickyBorderClass(cell); }); const thirdFoo...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
cell => { expectStickyStyles(cell, '10', {bottom: '0px'}); expectStickyBorderClass(cell); }
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
cell => { expectStickyStyles(cell, '10', {bottom: thirdFooterHeight + 'px'}); expectStickyBorderClass(cell, {bottom: true}); }
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
() => { const tfoot = tableElement.querySelector('tfoot'); component.stickyFooters = ['footer-1']; fixture.detectChanges(); flushMicrotasks(); expectNoStickyStyles([tfoot]); component.stickyFooters = ['footer-1', 'footer-2', 'footer-3']; fixture.detectChanges();...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
() => { component.stickyStartColumns = ['column-1', 'column-3']; fixture.detectChanges(); flushMicrotasks(); headerRows.forEach(row => { let cells = getHeaderCells(row); expectStickyStyles(cells[0], '1', {left: '0px'}); expectStickyBorderClass(cells[0]); ...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
() => { component.stickyHeaders = ['header-1']; component.stickyFooters = ['footer-3']; component.stickyStartColumns = ['column-1']; component.stickyEndColumns = ['column-6']; fixture.detectChanges(); flushMicrotasks(); const headerCells = getHeaderCells(headerR...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
() => { function createTestComponentWithTrackyByTable(trackByStrategy: string) { fixture = createComponent(TrackByCdkTableApp); component = fixture.componentInstance; component.trackByStrategy = trackByStrategy; tableElement = fixture.nativeElement.querySelector('cdk-table'); fixtur...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
(row: Element, index: number) => { row.setAttribute('initialIndex', index.toString()); }
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
() => { createTestComponentWithTrackyByTable('reference'); mutateData(); // Expect that the first and second rows were swapped and that the last row is new const changedRows = getRows(tableElement); expect(changedRows.length).toBe(3); expect(changedRows[0].getAttribute('initialInde...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
() => { createTestComponentWithTrackyByTable('reference'); mutateData(); // Change each item reference to show that the trackby is not checking the item properties. component.dataSource.data = component.dataSource.data.map((item: TestData) => ({a: item.a, b: item.b, c: item.c})); ...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
(item: TestData) => ({a: item.a, b: item.b, c: item.c})
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
() => { createTestComponentWithTrackyByTable('propertyA'); mutateData(); // Change each item reference to show that the trackby is checking the item properties. // Otherwise this would cause them all to be removed/added. component.dataSource.data = component.dataSource.data.map...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
() => { createTestComponentWithTrackyByTable('index'); mutateData(); // Change each item reference to show that the trackby is checking the index. // Otherwise this would cause them all to be removed/added. component.dataSource.data = component.dataSource.data.map((item: TestDa...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
() => { createTestComponentWithTrackyByTable('index'); const firstRow = getRows(tableElement)[0]; expect(firstRow.textContent!.trim()).toBe('a_1 b_1'); expect(firstRow.getAttribute('initialIndex')).toBe('0'); mutateData(); // Change each item reference to show that the trackby is c...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
() => { setupTableTestApp(DynamicDataSourceCdkTableApp); // Expect that the component has no data source and the table element reflects empty data. expect(component.dataSource).toBeUndefined(); expectTableToMatchContent(tableElement, [ ['Column A'] ]); // Add a data source that has init...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
() => { setupTableTestApp(RowContextCdkTableApp); let rowElements = tableElement.querySelectorAll('cdk-row'); // Rows should not have any context classes for (let i = 0; i < rowElements.length; i++) { expect(rowElements[i].classList.contains('custom-row-class-first')).toBe(false); expect(...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
() => { setupTableTestApp(RowContextCdkTableApp); const rowElements = fixture.nativeElement.querySelectorAll('cdk-row'); for (let i = 0; i < rowElements.length; i++) { // Cells should not have any context classes const cellElements = rowElements[i].querySelectorAll('cdk-cell'); for (let...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
(index: number, _rowData: TestData) => index == 1
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
(_index: number, rowData: TestData) => rowData.c == 'c_3'
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
(index: number, item: TestData) => { switch (this.trackByStrategy) { case 'reference': return item; case 'propertyA': return item.a; case 'index': return index; } }
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
() => { this.displayedColumns = ['column_a']; }
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
columnDef => this.table.addColumnDef(columnDef)
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
rowDef => this.table.addRowDef(rowDef)
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
(i: number) => i === 0
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
row => { actualTableContent.push(getHeaderCells(row)); }
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
row => getCells(row)
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
row => { actualTableContent.push(getFooterCells(row)); }
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
row => row.map(cell => cell.textContent!.trim())
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
cell => cell.textContent!.trim()
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
(row, rowIndex) => { const expectedRow = expected[rowIndex]; // Make sure the number of cells match if (row.length !== expectedRow.length) { missedExpectations.push(`Expected ${expectedRow.length} cells in row but got ${row.length}`); fail(missedExpectations.join('\n')); } row.forEach...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ArrowFunction
(actualCell, cellIndex) => { const expectedCell = expectedRow ? expectedRow[cellIndex] : null; checkCellContent(actualCell, expectedCell); }
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ClassDeclaration
class FakeDataSource extends DataSource<TestData> { isConnected = false; get data() { return this._dataChange.getValue(); } set data(data: TestData[]) { this._dataChange.next(data); } _dataChange = new BehaviorSubject<TestData[]>([]); constructor() { super(); for (let i = 0; i < 3; i++)...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ClassDeclaration
class BooleanDataSource extends DataSource<boolean> { _dataChange = new BehaviorSubject<boolean[]>([false, true, false, true]); connect(): Observable<boolean[]> { return this._dataChange; } disconnect() {} }
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ClassDeclaration
@Component({ template: ` <cdk-table [dataSource]="dataSource" (contentChanged)="contentChangedCount = contentChangedCount + 1"> <ng-container cdkColumnDef="column_a"> <cdk-header-cell *cdkHeaderCellDef> Column A</cdk-header-cell> <cdk-cell *cdkCellDef="let row"> {{row.a}} </c...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ClassDeclaration
@Component({ template: ` <cdk-table [dataSource]="dataSource"> <ng-container cdkColumnDef="column_a"> <cdk-header-cell *cdkHeaderCellDef> Column A</cdk-header-cell> <cdk-cell *cdkCellDef="let row"> {{row.a}}</cdk-cell> </ng-container> <ng-container cdkColumnDef="column_b"> ...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ClassDeclaration
@Component({ template: ` <cdk-table [dataSource]="dataSource"> <ng-container cdkColumnDef="column_a"> <cdk-header-cell *cdkHeaderCellDef></cdk-header-cell> <cdk-cell *cdkCellDef="let data"> {{data}} </cdk-cell> </ng-container> <cdk-header-row *cdkHeaderRowDef="['column_a']"></c...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ClassDeclaration
@Component({ template: ` <cdk-table [dataSource]="dataSource" (contentChanged)="contentChangedCount = contentChangedCount + 1"> <ng-container cdkColumnDef="column_a"> <cdk-header-cell *cdkHeaderCellDef></cdk-header-cell> <cdk-cell *cdkCellDef="let data"> {{data}} </cdk-cell> ...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ClassDeclaration
@Component({ template: ` <cdk-table [dataSource]="[]"> <ng-container cdkColumnDef="first-header"> <th cdk-header-cell *cdkHeaderCellDef> first-header </th> </ng-container> <ng-container cdkColumnDef="second-header"> <th cdk-header-cell *cdkHeaderCellDef> second-header </th> ...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ClassDeclaration
@Component({ template: ` <cdk-table [dataSource]="dataSource" [multiTemplateDataRows]="multiTemplateDataRows"> <ng-container cdkColumnDef="column_a"> <cdk-header-cell *cdkHeaderCellDef> Column A</cdk-header-cell> <cdk-cell *cdkCellDef="let row"> {{row.a}}</cdk-cell> </ng-container> ...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ClassDeclaration
@Component({ template: ` <cdk-table [dataSource]="dataSource" multiTemplateDataRows> <ng-container cdkColumnDef="column_a"> <cdk-header-cell *cdkHeaderCellDef> Column A</cdk-header-cell> <cdk-cell *cdkCellDef="let row"> {{row.a}}</cdk-cell> </ng-container> <ng-container cdkColu...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ClassDeclaration
@Component({ template: ` <cdk-table [dataSource]="dataSource"> <ng-container cdkColumnDef="column_a"> <cdk-header-cell *cdkHeaderCellDef> Column A</cdk-header-cell> <cdk-cell *cdkCellDef="let row"> {{row.a}}</cdk-cell> </ng-container> <ng-container cdkColumnDef="column_b"> ...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ClassDeclaration
@Component({ template: ` <cdk-table [dataSource]="dataSource"> <ng-container cdkColumnDef="column_a"> <cdk-header-cell *cdkHeaderCellDef> Column A</cdk-header-cell> <cdk-cell *cdkCellDef="let row"> {{row.a}}</cdk-cell> </ng-container> <ng-container cdkColumnDef="column_b"> ...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ClassDeclaration
@Component({ template: ` <cdk-table [dataSource]="dataSource"> <ng-container cdkColumnDef="column_a"> <cdk-header-cell *cdkHeaderCellDef> Column A</cdk-header-cell> <cdk-cell *cdkCellDef="let row"> {{row.a}}</cdk-cell> </ng-container> <cdk-header-row *cdkHeaderRowDef="columnsTo...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ClassDeclaration
@Component({ template: ` <cdk-table [dataSource]="dataSource" [trackBy]="trackBy"> <ng-container cdkColumnDef="column_a"> <cdk-header-cell *cdkHeaderCellDef> Column A</cdk-header-cell> <cdk-cell *cdkCellDef="let row"> {{row.a}}</cdk-cell> </ng-container> <ng-container cdkColumn...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ClassDeclaration
class StickyPositioningListenerTest implements StickyPositioningListener { mostRecentStickyColumnsUpdate?: StickyUpdate; mostRecentStickyEndColumnsUpdate?: StickyUpdate; mostRecentStickyHeaderRowsUpdate?: StickyUpdate; mostRecentStickyFooterRowsUpdate?: StickyUpdate; stickyColumnsUpdated(update: StickyUpdat...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ClassDeclaration
@Component({ template: ` <cdk-table [dataSource]="dataSource" [dir]="dir"> <ng-container [cdkColumnDef]="column" *ngFor="let column of columns" [sticky]="isStuck(stickyStartColumns, column)" [stickyEnd]="isStuck(stickyEndColumns, column)"> <cdk-header-cell *c...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ClassDeclaration
@Component({ template: ` <table cdk-table [dataSource]="dataSource"> <ng-container [cdkColumnDef]="column" *ngFor="let column of columns" [sticky]="isStuck(stickyStartColumns, column)" [stickyEnd]="isStuck(stickyEndColumns, column)"> <th cdk-header-cell *cdkH...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ClassDeclaration
@Component({ template: ` <cdk-table [dataSource]="dataSource"> <ng-container [cdkColumnDef]="column" *ngFor="let column of dynamicColumns"> <cdk-header-cell *cdkHeaderCellDef> {{column}} </cdk-header-cell> <cdk-cell *cdkCellDef="let row"> {{column}} </cdk-cell> </ng-container> ...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ClassDeclaration
@Component({ template: ` <cdk-table [dataSource]="dataSource" role="treegrid"> <ng-container cdkColumnDef="column_a"> <cdk-header-cell *cdkHeaderCellDef> Column A</cdk-header-cell> <cdk-cell *cdkCellDef="let row"> {{row.a}}</cdk-cell> </ng-container> <cdk-header-row *cdkHeaderR...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ClassDeclaration
@Component({ template: ` <cdk-table [dataSource]="dataSource"> <ng-container [cdkColumnDef]="columnsToRender[0]"> <cdk-header-cell *cdkHeaderCellDef> Column A</cdk-header-cell> <cdk-cell *cdkCellDef="let row"> {{row.a}}</cdk-cell> </ng-container> <cdk-header-row *cdkHeaderRowDe...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ClassDeclaration
@Component({ template: ` <cdk-table [dataSource]="dataSource"> <ng-container cdkColumnDef="column_a"> <cdk-header-cell *cdkHeaderCellDef> Column A</cdk-header-cell> <cdk-cell *cdkCellDef="let row"> {{row.a}}</cdk-cell> </ng-container> <ng-container cdkColumnDef="column_a"> ...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ClassDeclaration
@Component({ template: ` <cdk-table [dataSource]="dataSource"> <ng-container cdkColumnDef="column_b"> <cdk-header-cell *cdkHeaderCellDef> Column A</cdk-header-cell> <cdk-cell *cdkCellDef="let row"> {{row.a}}</cdk-cell> </ng-container> <cdk-header-row *cdkHeaderRowDef="['column_...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript
ClassDeclaration
@Component({ template: ` <cdk-table [dataSource]="dataSource"> <ng-container cdkColumnDef="column_b"> <cdk-header-cell *cdkHeaderCellDef> Column A</cdk-header-cell> <cdk-cell *cdkCellDef="let row"> {{row.a}}</cdk-cell> </ng-container> <cdk-header-row *cdkHeaderRowDef="displayed...
AbuDeCoder/components
src/cdk/table/table.spec.ts
TypeScript