_id stringlengths 21 254 | text stringlengths 1 93.7k | metadata dict |
|---|---|---|
components/src/components-examples/material/table/index.ts_0_2931 | export {TableFlexBasicExample} from './table-flex-basic/table-flex-basic-example';
export {TableBasicExample} from './table-basic/table-basic-example';
export {TableDynamicColumnsExample} from './table-dynamic-columns/table-dynamic-columns-example';
export {TableExpandableRowsExample} from './table-expandable-rows/tabl... | {
"end_byte": 2931,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/index.ts"
} |
components/src/components-examples/material/table/table-multiple-row-template/table-multiple-row-template-example.css_0_25 | table {
width: 100%;
}
| {
"end_byte": 25,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-multiple-row-template/table-multiple-row-template-example.css"
} |
components/src/components-examples/material/table/table-multiple-row-template/table-multiple-row-template-example.ts_0_2023 | import {Component} from '@angular/core';
import {MatTableDataSource, MatTableModule} from '@angular/material/table';
/**
* @title Table with multiple row template
*/
@Component({
selector: 'table-multiple-row-template-example',
styleUrls: ['table-multiple-row-template-example.css'],
templateUrl: 'table-multipl... | {
"end_byte": 2023,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-multiple-row-template/table-multiple-row-template-example.ts"
} |
components/src/components-examples/material/table/table-multiple-row-template/table-multiple-row-template-example.html_0_1421 | <div class="mat-elevation-z8">
<table mat-table [dataSource]="dataSource" multiTemplateDataRows>
<!-- Position Column -->
<ng-container matColumnDef="position">
<th mat-header-cell *matHeaderCellDef>No.</th>
<td mat-cell *matCellDef="let element">{{element.position}}</td>
</ng-container>
... | {
"end_byte": 1421,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-multiple-row-template/table-multiple-row-template-example.html"
} |
components/src/components-examples/material/table/table-filtering/table-filtering-example.html_0_1371 | <mat-form-field>
<mat-label>Filter</mat-label>
<input matInput (keyup)="applyFilter($event)" placeholder="Ex. ium" #input>
</mat-form-field>
<table mat-table [dataSource]="dataSource" class="mat-elevation-z8">
<!-- Position Column -->
<ng-container matColumnDef="position">
<th mat-header-cell *matHeaderCe... | {
"end_byte": 1371,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-filtering/table-filtering-example.html"
} |
components/src/components-examples/material/table/table-filtering/table-filtering-example.css_0_100 | /* Structure */
table {
width: 100%;
}
.mat-mdc-form-field {
font-size: 14px;
width: 100%;
}
| {
"end_byte": 100,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-filtering/table-filtering-example.css"
} |
components/src/components-examples/material/table/table-filtering/table-filtering-example.ts_0_1609 | import {Component} from '@angular/core';
import {MatTableDataSource, MatTableModule} from '@angular/material/table';
import {MatInputModule} from '@angular/material/input';
import {MatFormFieldModule} from '@angular/material/form-field';
export interface PeriodicElement {
name: string;
position: number;
weight: ... | {
"end_byte": 1609,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-filtering/table-filtering-example.ts"
} |
components/src/components-examples/material/table/table-recycle-rows/table-recycle-rows-example.css_0_34 | .example-table {
width: 100%;
}
| {
"end_byte": 34,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-recycle-rows/table-recycle-rows-example.css"
} |
components/src/components-examples/material/table/table-recycle-rows/table-recycle-rows-example.ts_0_1286 | import {Component} from '@angular/core';
import {MatTableModule} from '@angular/material/table';
export interface PeriodicElement {
name: string;
position: number;
weight: number;
symbol: string;
}
const ELEMENT_DATA: PeriodicElement[] = [
{position: 1, name: 'Hydrogen', weight: 1.0079, symbol: 'H'},
{pos... | {
"end_byte": 1286,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-recycle-rows/table-recycle-rows-example.ts"
} |
components/src/components-examples/material/table/table-recycle-rows/table-recycle-rows-example.html_0_1064 | <table class="example-table mat-elevation-z8" mat-table recycleRows [dataSource]="dataSource">
<!-- Position Column -->
<ng-container matColumnDef="position">
<th mat-header-cell *matHeaderCellDef> No. </th>
<td mat-cell *matCellDef="let element"> {{element.position}} </td>
</ng-container>
<!-- Name Co... | {
"end_byte": 1064,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-recycle-rows/table-recycle-rows-example.html"
} |
components/src/components-examples/material/table/table-flex-large-row/table-flex-large-row-example.ts_0_1311 | import {Component} from '@angular/core';
import {MatTableModule} from '@angular/material/table';
export interface PeriodicElement {
name: string;
position: number;
weight: number;
symbol: string;
}
const ELEMENT_DATA: PeriodicElement[] = [
{position: 1, name: 'Hydrogen', weight: 1.0079, symbol: 'H'},
{pos... | {
"end_byte": 1311,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-flex-large-row/table-flex-large-row-example.ts"
} |
components/src/components-examples/material/table/table-flex-large-row/table-flex-large-row-example.html_0_1097 | <mat-table [dataSource]="dataSource" class="mat-elevation-z8">
<!-- Position Column -->
<ng-container matColumnDef="position">
<mat-header-cell *matHeaderCellDef> No. </mat-header-cell>
<mat-cell *matCellDef="let element"> {{element.position}} </mat-cell>
</ng-container>
<!-- Name Column -->
<ng-cont... | {
"end_byte": 1097,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-flex-large-row/table-flex-large-row-example.html"
} |
components/src/components-examples/material/table/table-flex-large-row/table-flex-large-row-example.css_0_112 | .mat-mdc-table {
width: 100%;
max-height: 500px;
overflow: auto;
}
.mat-column-name {
height: 100px;
}
| {
"end_byte": 112,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-flex-large-row/table-flex-large-row-example.css"
} |
components/src/components-examples/material/table/table-row-context/table-row-context-example.css_0_25 | table {
width: 100%;
}
| {
"end_byte": 25,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-row-context/table-row-context-example.css"
} |
components/src/components-examples/material/table/table-row-context/table-row-context-example.html_0_1595 | <table mat-table [dataSource]="data" class="mat-elevation-z8">
<!-- Implicit Column -->
<ng-container matColumnDef="$implicit">
<th mat-header-cell *matHeaderCellDef> $implicit </th>
<td mat-cell *matCellDef="let data"> {{data}} </td>
</ng-container>
<!-- Index Column -->
<ng-container matColumnDef="... | {
"end_byte": 1595,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-row-context/table-row-context-example.html"
} |
components/src/components-examples/material/table/table-row-context/table-row-context-example.ts_0_535 | import {Component} from '@angular/core';
import {MatTableModule} from '@angular/material/table';
/**
* @title Table showing each row context properties.
*/
@Component({
selector: 'table-row-context-example',
styleUrl: 'table-row-context-example.css',
templateUrl: 'table-row-context-example.html',
imports: [M... | {
"end_byte": 535,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-row-context/table-row-context-example.ts"
} |
components/src/components-examples/material/table/table-sticky-columns/table-sticky-columns-example.ts_0_1404 | import {Component} from '@angular/core';
import {MatIconModule} from '@angular/material/icon';
import {MatTableModule} from '@angular/material/table';
/**
* @title Table with sticky columns
*/
@Component({
selector: 'table-sticky-columns-example',
styleUrl: 'table-sticky-columns-example.css',
templateUrl: 'tab... | {
"end_byte": 1404,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-sticky-columns/table-sticky-columns-example.ts"
} |
components/src/components-examples/material/table/table-sticky-columns/table-sticky-columns-example.css_0_412 | .example-container {
height: 400px;
width: 550px;
max-width: 100%;
overflow: auto;
}
table {
width: 800px;
}
td.mat-column-star {
width: 20px;
padding-right: 8px;
}
th.mat-column-position, td.mat-column-position {
padding-left: 8px;
}
.mat-mdc-table-sticky-border-elem-right {
border-left: 1px soli... | {
"end_byte": 412,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-sticky-columns/table-sticky-columns-example.css"
} |
components/src/components-examples/material/table/table-sticky-columns/table-sticky-columns-example.html_0_1418 | <section class="example-container mat-elevation-z8" tabindex="0">
<table mat-table [dataSource]="dataSource">
<!-- Name Column -->
<ng-container matColumnDef="name" sticky>
<th mat-header-cell *matHeaderCellDef> Name </th>
<td mat-cell *matCellDef="let element"> {{element.name}} </td>
</ng-co... | {
"end_byte": 1418,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-sticky-columns/table-sticky-columns-example.html"
} |
components/src/components-examples/material/table/table-text-column-advanced/table-text-column-advanced-example.html_0_675 | <table mat-table [dataSource]="dataSource" class="mat-elevation-z8">
<mat-text-column name="position" [headerText]="headerText"></mat-text-column>
<!-- Change the header text. -->
<mat-text-column name="name" headerText="Element"></mat-text-column>
<!-- Provide a data accessor for getting the cell text values... | {
"end_byte": 675,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-text-column-advanced/table-text-column-advanced-example.html"
} |
components/src/components-examples/material/table/table-text-column-advanced/table-text-column-advanced-example.ts_0_1758 | import {Component} from '@angular/core';
import {DecimalPipe} from '@angular/common';
import {MatTableDataSource, MatTableModule} from '@angular/material/table';
export interface PeriodicElement {
name: string;
position: number;
weight: number;
symbol: string;
}
const ELEMENT_DATA: PeriodicElement[] = [
{po... | {
"end_byte": 1758,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-text-column-advanced/table-text-column-advanced-example.ts"
} |
components/src/components-examples/material/table/table-text-column-advanced/table-text-column-advanced-example.css_0_25 | table {
width: 100%;
}
| {
"end_byte": 25,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-text-column-advanced/table-text-column-advanced-example.css"
} |
components/src/components-examples/material/table/table-sticky-footer/table-sticky-footer-example.ts_0_933 | import {Component} from '@angular/core';
import {CurrencyPipe} from '@angular/common';
import {MatTableModule} from '@angular/material/table';
export interface Transaction {
item: string;
cost: number;
}
/**
* @title Table with a sticky footer
*/
@Component({
selector: 'table-sticky-footer-example',
styleUr... | {
"end_byte": 933,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-sticky-footer/table-sticky-footer-example.ts"
} |
components/src/components-examples/material/table/table-sticky-footer/table-sticky-footer-example.html_0_936 | <section class="example-container mat-elevation-z8" tabindex="0">
<table mat-table [dataSource]="transactions">
<!-- Item Column -->
<ng-container matColumnDef="item">
<th mat-header-cell *matHeaderCellDef> Item </th>
<td mat-cell *matCellDef="let transaction"> {{transaction.item}} </td>
<td... | {
"end_byte": 936,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-sticky-footer/table-sticky-footer-example.html"
} |
components/src/components-examples/material/table/table-sticky-footer/table-sticky-footer-example.css_0_192 | .example-container {
height: 270px;
overflow: auto;
}
table {
width: 100%;
}
tr.mat-mdc-footer-row {
font-weight: bold;
}
.mat-mdc-table-sticky {
border-top: 1px solid #e0e0e0;
}
| {
"end_byte": 192,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-sticky-footer/table-sticky-footer-example.css"
} |
components/src/components-examples/material/table/table-reorderable/table-reorderable-example.ts_0_1491 | import {Component} from '@angular/core';
import {CdkDragDrop, CdkDrag, CdkDropList, moveItemInArray} from '@angular/cdk/drag-drop';
import {MatTableModule} from '@angular/material/table';
/**
* @title Table with re-orderable columns
*/
@Component({
selector: 'table-reorderable-example',
templateUrl: './table-reo... | {
"end_byte": 1491,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-reorderable/table-reorderable-example.ts"
} |
components/src/components-examples/material/table/table-reorderable/table-reorderable-example.css_0_25 | table {
width: 100%;
}
| {
"end_byte": 25,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-reorderable/table-reorderable-example.css"
} |
components/src/components-examples/material/table/table-reorderable/table-reorderable-example.html_0_1040 | <table mat-table
[dataSource]="dataSource"
cdkDropList
cdkDropListOrientation="horizontal"
(cdkDropListDropped)="drop($event)">
<ng-container matColumnDef="position">
<th mat-header-cell cdkDrag *matHeaderCellDef> No. </th>
<td mat-cell *matCellDef="let element"> {{element.positi... | {
"end_byte": 1040,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-reorderable/table-reorderable-example.html"
} |
components/src/components-examples/material/table/table-basic/table-basic-example.html_0_1186 | <table mat-table [dataSource]="dataSource" class="mat-elevation-z8">
<!--- Note that these columns can be defined in any order.
The actual rendered columns are set as a property on the row definition" -->
<!-- Position Column -->
<ng-container matColumnDef="position">
<th mat-header-cell *matHeaderC... | {
"end_byte": 1186,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-basic/table-basic-example.html"
} |
components/src/components-examples/material/table/table-basic/table-basic-example.css_0_25 | table {
width: 100%;
}
| {
"end_byte": 25,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-basic/table-basic-example.css"
} |
components/src/components-examples/material/table/table-basic/table-basic-example.ts_0_1240 | import {Component} from '@angular/core';
import {MatTableModule} from '@angular/material/table';
export interface PeriodicElement {
name: string;
position: number;
weight: number;
symbol: string;
}
const ELEMENT_DATA: PeriodicElement[] = [
{position: 1, name: 'Hydrogen', weight: 1.0079, symbol: 'H'},
{pos... | {
"end_byte": 1240,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-basic/table-basic-example.ts"
} |
components/src/components-examples/material/table/table-flex-basic/table-flex-basic-example.ts_0_1273 | import {Component} from '@angular/core';
import {MatTableModule} from '@angular/material/table';
export interface PeriodicElement {
name: string;
position: number;
weight: number;
symbol: string;
}
const ELEMENT_DATA: PeriodicElement[] = [
{position: 1, name: 'Hydrogen', weight: 1.0079, symbol: 'H'},
{pos... | {
"end_byte": 1273,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-flex-basic/table-flex-basic-example.ts"
} |
components/src/components-examples/material/table/table-flex-basic/table-flex-basic-example.css_0_25 | table {
width: 100%;
}
| {
"end_byte": 25,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-flex-basic/table-flex-basic-example.css"
} |
components/src/components-examples/material/table/table-flex-basic/table-flex-basic-example.html_0_1097 | <mat-table [dataSource]="dataSource" class="mat-elevation-z8">
<!-- Position Column -->
<ng-container matColumnDef="position">
<mat-header-cell *matHeaderCellDef> No. </mat-header-cell>
<mat-cell *matCellDef="let element"> {{element.position}} </mat-cell>
</ng-container>
<!-- Name Column -->
<ng-cont... | {
"end_byte": 1097,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-flex-basic/table-flex-basic-example.html"
} |
components/src/components-examples/material/table/table-text-column/table-text-column-example.css_0_25 | table {
width: 100%;
}
| {
"end_byte": 25,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-text-column/table-text-column-example.css"
} |
components/src/components-examples/material/table/table-text-column/table-text-column-example.ts_0_1360 | import {Component} from '@angular/core';
import {MatTableModule} from '@angular/material/table';
export interface PeriodicElement {
name: string;
position: number;
weight: number;
symbol: string;
}
const ELEMENT_DATA: PeriodicElement[] = [
{position: 1, name: 'Hydrogen', weight: 1.0079, symbol: 'H'},
{pos... | {
"end_byte": 1360,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-text-column/table-text-column-example.ts"
} |
components/src/components-examples/material/table/table-text-column/table-text-column-example.html_0_419 | <table mat-table [dataSource]="dataSource" class="mat-elevation-z8">
<mat-text-column name="position"></mat-text-column>
<mat-text-column name="name"></mat-text-column>
<mat-text-column name="weight"></mat-text-column>
<mat-text-column name="symbol"></mat-text-column>
<tr mat-header-row *matHeaderRowDef="dis... | {
"end_byte": 419,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-text-column/table-text-column-example.html"
} |
components/src/components-examples/material/table/table-with-ripples/table-with-ripples-example.html_0_444 | <mat-table [dataSource]="dataSource" class="mat-elevation-z8">
<ng-container matColumnDef="name">
<mat-header-cell mat-header-cell *matHeaderCellDef> Name </mat-header-cell>
<mat-cell mat-cell *matCellDef="let element"> {{element.name}} </mat-cell>
</ng-container>
<mat-header-row *matHeaderRowDef="displa... | {
"end_byte": 444,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-with-ripples/table-with-ripples-example.html"
} |
components/src/components-examples/material/table/table-with-ripples/table-with-ripples-example.ts_0_708 | import {Component} from '@angular/core';
import {MatRippleModule} from '@angular/material/core';
import {MatTableModule} from '@angular/material/table';
const ELEMENT_DATA = [
{name: 'Hydrogen'},
{name: 'Helium'},
{name: 'Lithium'},
{name: 'Beryllium'},
{name: 'Boron'},
{name: 'Carbon'},
{name: 'Nitrogen... | {
"end_byte": 708,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-with-ripples/table-with-ripples-example.ts"
} |
components/src/components-examples/material/table/table-footer-row/table-footer-row-example.html_0_836 | <table mat-table [dataSource]="transactions" class="mat-elevation-z8">
<!-- Item Column -->
<ng-container matColumnDef="item">
<th mat-header-cell *matHeaderCellDef> Item </th>
<td mat-cell *matCellDef="let transaction"> {{transaction.item}} </td>
<td mat-footer-cell *matFooterCellDef> Total </td>
</n... | {
"end_byte": 836,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-footer-row/table-footer-row-example.html"
} |
components/src/components-examples/material/table/table-footer-row/table-footer-row-example.ts_0_914 | import {Component} from '@angular/core';
import {CurrencyPipe} from '@angular/common';
import {MatTableModule} from '@angular/material/table';
interface Transaction {
item: string;
cost: number;
}
/**
* @title Footer row table
*/
@Component({
selector: 'table-footer-row-example',
styleUrl: 'table-footer-row... | {
"end_byte": 914,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-footer-row/table-footer-row-example.ts"
} |
components/src/components-examples/material/table/table-footer-row/table-footer-row-example.css_0_76 | table {
width: 100%;
}
tr.mat-mdc-footer-row td {
font-weight: bold;
}
| {
"end_byte": 76,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-footer-row/table-footer-row-example.css"
} |
components/src/components-examples/material/table/table-generated-columns/table-generated-columns-example.html_0_508 | <table mat-table [dataSource]="dataSource" class="mat-elevation-z8 demo-table">
@for (column of columns; track column) {
<ng-container [matColumnDef]="column.columnDef">
<th mat-header-cell *matHeaderCellDef>
{{column.header}}
</th>
<td mat-cell *matCellDef="let row">
{{column.ce... | {
"end_byte": 508,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-generated-columns/table-generated-columns-example.html"
} |
components/src/components-examples/material/table/table-generated-columns/table-generated-columns-example.ts_0_1851 | import {Component} from '@angular/core';
import {MatTableModule} from '@angular/material/table';
export interface PeriodicElement {
name: string;
position: number;
weight: number;
symbol: string;
}
const ELEMENT_DATA: PeriodicElement[] = [
{position: 1, name: 'Hydrogen', weight: 1.0079, symbol: 'H'},
{pos... | {
"end_byte": 1851,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-generated-columns/table-generated-columns-example.ts"
} |
components/src/components-examples/material/table/table-generated-columns/table-generated-columns-example.css_0_31 | .demo-table {
width: 100%;
}
| {
"end_byte": 31,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-generated-columns/table-generated-columns-example.css"
} |
components/src/components-examples/material/table/table-dynamic-array-data/table-dynamic-array-data-example.html_0_1326 | <div class="demo-button-container">
<button mat-raised-button (click)="addData()" class="demo-button">
Add data
</button>
<button
mat-raised-button
[disabled]="!dataSource.length"
(click)="removeData()"
class="demo-button">
Remove data
</button>
</div>
<table mat-table [dataSour... | {
"end_byte": 1326,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-dynamic-array-data/table-dynamic-array-data-example.html"
} |
components/src/components-examples/material/table/table-dynamic-array-data/table-dynamic-array-data-example.ts_0_1745 | import {Component, ViewChild} from '@angular/core';
import {MatTable, MatTableModule} from '@angular/material/table';
import {MatButtonModule} from '@angular/material/button';
export interface PeriodicElement {
name: string;
position: number;
weight: number;
symbol: string;
}
const ELEMENT_DATA: PeriodicEleme... | {
"end_byte": 1745,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-dynamic-array-data/table-dynamic-array-data-example.ts"
} |
components/src/components-examples/material/table/table-dynamic-array-data/table-dynamic-array-data-example.css_0_136 | .demo-table {
width: 100%;
}
.demo-button-container {
padding-bottom: 16px;
}
.demo-button + .demo-button {
margin-left: 8px;
}
| {
"end_byte": 136,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-dynamic-array-data/table-dynamic-array-data-example.css"
} |
components/src/components-examples/material/table/table-multiple-header-footer/table-multiple-header-footer-example.ts_0_987 | import {Component} from '@angular/core';
import {CurrencyPipe} from '@angular/common';
import {MatTableModule} from '@angular/material/table';
interface Transaction {
item: string;
cost: number;
}
/**
* @title Table with multiple header and footer rows
*/
@Component({
selector: 'table-multiple-header-footer-e... | {
"end_byte": 987,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-multiple-header-footer/table-multiple-header-footer-example.ts"
} |
components/src/components-examples/material/table/table-multiple-header-footer/table-multiple-header-footer-example.css_0_245 | table {
width: 100%;
}
.example-first-header-row th {
border-bottom: none;
}
.example-second-header-row {
font-style: italic;
}
.example-first-footer-row {
font-weight: bold;
}
.example-second-footer-row td {
font-style: italic;
}
| {
"end_byte": 245,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-multiple-header-footer/table-multiple-header-footer-example.css"
} |
components/src/components-examples/material/table/table-multiple-header-footer/table-multiple-header-footer-example.html_0_1837 | <table mat-table [dataSource]="transactions" class="mat-elevation-z8">
<!-- Item Column -->
<ng-container matColumnDef="item">
<th mat-header-cell *matHeaderCellDef> Item </th>
<td mat-cell *matCellDef="let transaction"> {{transaction.item}} </td>
<td mat-footer-cell *matFooterCellDef> Total </td>
</n... | {
"end_byte": 1837,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-multiple-header-footer/table-multiple-header-footer-example.html"
} |
components/src/components-examples/material/table/table-row-binding/table-row-binding-example.ts_0_1331 | import {Component} from '@angular/core';
import {MatTableModule} from '@angular/material/table';
export interface PeriodicElement {
name: string;
position: number;
weight: number;
symbol: string;
}
const ELEMENT_DATA: PeriodicElement[] = [
{position: 1, name: 'Hydrogen', weight: 1.0079, symbol: 'H'},
{pos... | {
"end_byte": 1331,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-row-binding/table-row-binding-example.ts"
} |
components/src/components-examples/material/table/table-row-binding/table-row-binding-example.html_0_1374 | <table mat-table [dataSource]="dataSource" class="mat-elevation-z8 demo-table">
<!-- Position Column -->
<ng-container matColumnDef="position">
<th mat-header-cell *matHeaderCellDef>No.</th>
<td mat-cell *matCellDef="let element">{{element.position}}</td>
</ng-container>
<!-- Name Column -->
<ng-cont... | {
"end_byte": 1374,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-row-binding/table-row-binding-example.html"
} |
components/src/components-examples/material/table/table-row-binding/table-row-binding-example.css_0_274 | .demo-table {
width: 100%;
}
.mat-mdc-row .mat-mdc-cell {
border-bottom: 1px solid transparent;
border-top: 1px solid transparent;
cursor: pointer;
}
.mat-mdc-row:hover .mat-mdc-cell {
border-color: currentColor;
}
.demo-row-is-clicked {
font-weight: bold;
}
| {
"end_byte": 274,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-row-binding/table-row-binding-example.css"
} |
components/src/components-examples/material/table/table-http/table-http-example.ts_0_3210 | import {HttpClient} from '@angular/common/http';
import {Component, ViewChild, AfterViewInit, inject} from '@angular/core';
import {MatPaginator, MatPaginatorModule} from '@angular/material/paginator';
import {MatSort, MatSortModule, SortDirection} from '@angular/material/sort';
import {merge, Observable, of as observa... | {
"end_byte": 3210,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-http/table-http-example.ts"
} |
components/src/components-examples/material/table/table-http/table-http-example.css_0_608 | /* Structure */
.example-container {
position: relative;
}
.example-table-container {
position: relative;
min-height: 200px;
max-height: 400px;
overflow: auto;
}
table {
width: 100%;
}
.example-loading-shade {
position: absolute;
top: 0;
left: 0;
bottom: 56px;
right: 0;
background: rgba(0, 0,... | {
"end_byte": 608,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-http/table-http-example.css"
} |
components/src/components-examples/material/table/table-http/table-http-example.html_0_1819 | <div class="example-container mat-elevation-z8">
@if (isLoadingResults || isRateLimitReached) {
<div class="example-loading-shade">
@if (isLoadingResults) {
<mat-spinner></mat-spinner>
}
@if (isRateLimitReached) {
<div class="example-rate-limit-reached">
GitHub's API ra... | {
"end_byte": 1819,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-http/table-http-example.html"
} |
components/src/components-examples/material/table/table-selection/table-selection-example.html_0_1814 | <table mat-table [dataSource]="dataSource" class="mat-elevation-z8">
<!-- Checkbox Column -->
<ng-container matColumnDef="select">
<th mat-header-cell *matHeaderCellDef>
<mat-checkbox (change)="$event ? toggleAllRows() : null"
[checked]="selection.hasValue() && isAllSelected()"
... | {
"end_byte": 1814,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-selection/table-selection-example.html"
} |
components/src/components-examples/material/table/table-selection/table-selection-example.css_0_25 | table {
width: 100%;
}
| {
"end_byte": 25,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-selection/table-selection-example.css"
} |
components/src/components-examples/material/table/table-selection/table-selection-example.ts_0_2300 | import {SelectionModel} from '@angular/cdk/collections';
import {Component} from '@angular/core';
import {MatTableDataSource, MatTableModule} from '@angular/material/table';
import {MatCheckboxModule} from '@angular/material/checkbox';
export interface PeriodicElement {
name: string;
position: number;
weight: nu... | {
"end_byte": 2300,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-selection/table-selection-example.ts"
} |
components/src/components-examples/material/table/table-wrapped/table-wrapped-example.html_0_924 | <div>
<button mat-raised-button (click)="clearTable()">Clear table</button>
<button mat-raised-button (click)="addData()">Add data</button>
</div>
<wrapper-table [dataSource]="dataSource" [columns]="displayedColumns"
matSort #sort="matSort">
<!-- Custom column definition to be provided to the wrap... | {
"end_byte": 924,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-wrapped/table-wrapped-example.html"
} |
components/src/components-examples/material/table/table-wrapped/table-wrapped-example.css_0_60 | table {
width: 100%;
}
button {
margin: 0 8px 8px 0;
}
| {
"end_byte": 60,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-wrapped/table-wrapped-example.css"
} |
components/src/components-examples/material/table/table-wrapped/table-wrapped-example.ts_0_3155 | import {DataSource} from '@angular/cdk/collections';
import {
AfterContentInit,
Component,
ContentChildren,
AfterViewInit,
QueryList,
ViewChild,
ContentChild,
forwardRef,
input,
} from '@angular/core';
import {MatSort, MatSortModule} from '@angular/material/sort';
import {
MatColumnDef,
MatHeaderR... | {
"end_byte": 3155,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-wrapped/table-wrapped-example.ts"
} |
components/src/components-examples/material/table/table-wrapped/wrapper-table.html_0_766 | <table mat-table [dataSource]="dataSource()" class="mat-elevation-z8">
<ng-content></ng-content>
<!-- Position Column -->
<ng-container matColumnDef="position">
<th mat-header-cell *matHeaderCellDef mat-sort-header> No. </th>
<td mat-cell *matCellDef="let element"> {{element.position}} </td>
</ng-conta... | {
"end_byte": 766,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-wrapped/wrapper-table.html"
} |
components/src/components-examples/material/table/table-sorting/table-sorting-example.ts_0_2170 | import {LiveAnnouncer} from '@angular/cdk/a11y';
import {AfterViewInit, Component, ViewChild, inject} from '@angular/core';
import {MatSort, Sort, MatSortModule} from '@angular/material/sort';
import {MatTableDataSource, MatTableModule} from '@angular/material/table';
export interface PeriodicElement {
name: string;... | {
"end_byte": 2170,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-sorting/table-sorting-example.ts"
} |
components/src/components-examples/material/table/table-sorting/table-sorting-example.html_0_1356 | <table mat-table [dataSource]="dataSource" matSort (matSortChange)="announceSortChange($event)"
class="mat-elevation-z8">
<!-- Position Column -->
<ng-container matColumnDef="position">
<th mat-header-cell *matHeaderCellDef mat-sort-header sortActionDescription="Sort by number">
No.
</th>
... | {
"end_byte": 1356,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-sorting/table-sorting-example.html"
} |
components/src/components-examples/material/table/table-sorting/table-sorting-example.css_0_72 | table {
width: 100%;
}
th.mat-sort-header-sorted {
color: black;
}
| {
"end_byte": 72,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-sorting/table-sorting-example.css"
} |
components/src/components-examples/material/table/table-column-styling/table-column-styling-example.html_0_1069 | <table mat-table [dataSource]="dataSource" class="mat-elevation-z8 demo-table">
<!-- Position Column -->
<ng-container matColumnDef="demo-position">
<th mat-header-cell *matHeaderCellDef> No. </th>
<td mat-cell *matCellDef="let element"> {{element.position}} </td>
</ng-container>
<!-- Name Column -->
... | {
"end_byte": 1069,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-column-styling/table-column-styling-example.html"
} |
components/src/components-examples/material/table/table-column-styling/table-column-styling-example.css_0_368 | .demo-table {
width: 100%;
}
.mat-column-demo-position {
width: 32px;
border-right: 1px solid currentColor;
padding-right: 24px;
text-align: center;
}
.mat-column-demo-name {
padding-left: 16px;
font-size: 20px;
}
.mat-column-demo-weight {
font-style: italic;
}
.mat-column-demo-symbol {
width: 32p... | {
"end_byte": 368,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-column-styling/table-column-styling-example.css"
} |
components/src/components-examples/material/table/table-column-styling/table-column-styling-example.ts_0_1318 | import {Component} from '@angular/core';
import {MatTableModule} from '@angular/material/table';
export interface PeriodicElement {
name: string;
position: number;
weight: number;
symbol: string;
}
const ELEMENT_DATA: PeriodicElement[] = [
{position: 1, name: 'Hydrogen', weight: 1.0079, symbol: 'H'},
{pos... | {
"end_byte": 1318,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-column-styling/table-column-styling-example.ts"
} |
components/src/components-examples/material/table/table-harness/table-harness-example.ts_0_1061 | import {Component} from '@angular/core';
import {MatTableModule} from '@angular/material/table';
/**
* @title Testing with MatTableHarness
*/
@Component({
selector: 'table-harness-example',
templateUrl: 'table-harness-example.html',
imports: [MatTableModule],
})
export class TableHarnessExample {
displayedC... | {
"end_byte": 1061,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-harness/table-harness-example.ts"
} |
components/src/components-examples/material/table/table-harness/table-harness-example.spec.ts_0_3426 | import {ComponentFixture, TestBed} from '@angular/core/testing';
import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed';
import {MatTableHarness} from '@angular/material/table/testing';
import {HarnessLoader, parallel} from '@angular/cdk/testing';
import {TableHarnessExample} from './table-harness-examp... | {
"end_byte": 3426,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-harness/table-harness-example.spec.ts"
} |
components/src/components-examples/material/table/table-harness/table-harness-example.html_0_1233 | <table mat-table [dataSource]="dataSource">
<ng-container matColumnDef="position">
<th mat-header-cell *matHeaderCellDef>No.</th>
<td mat-cell *matCellDef="let element">{{element.position}}</td>
<td mat-footer-cell *matFooterCellDef>Number of the element</td>
</ng-container>
<ng-container matColumnDe... | {
"end_byte": 1233,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-harness/table-harness-example.html"
} |
components/src/components-examples/material/table/table-sticky-complex/table-sticky-complex-example.css_0_698 | .example-container {
height: 400px;
overflow: auto;
}
.mat-mdc-table-sticky {
background: #59abfd;
opacity: 1;
}
.example-sticky-toggle-group {
margin: 8px;
}
.mat-column-filler {
padding: 0 8px;
font-size: 10px;
text-align: center;
}
.mat-mdc-header-cell, .mat-mdc-footer-cell, .mat-mdc-cell {
min... | {
"end_byte": 698,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-sticky-complex/table-sticky-complex-example.css"
} |
components/src/components-examples/material/table/table-sticky-complex/table-sticky-complex-example.ts_0_2050 | import {Component} from '@angular/core';
import {MatButtonToggleGroup, MatButtonToggleModule} from '@angular/material/button-toggle';
import {MatTableModule} from '@angular/material/table';
import {MatButtonModule} from '@angular/material/button';
/**
* @title Tables with toggle-able sticky headers, footers, and colu... | {
"end_byte": 2050,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-sticky-complex/table-sticky-complex-example.ts"
} |
components/src/components-examples/material/table/table-sticky-complex/table-sticky-complex-example.html_0_3704 | <div>
<button mat-raised-button (click)="tables.push(tables.length)">Add table</button>
<button mat-raised-button (click)="tables.pop()">Remove table</button>
</div>
<div>
Sticky Headers:
<mat-button-toggle-group multiple [value]="['header-1']"
#stickyHeaders="matButtonToggleGroup"
... | {
"end_byte": 3704,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-sticky-complex/table-sticky-complex-example.html"
} |
components/src/components-examples/material/table/table-dynamic-observable-data/table-dynamic-observable-data-example.css_0_136 | .demo-table {
width: 100%;
}
.demo-button-container {
padding-bottom: 16px;
}
.demo-button + .demo-button {
margin-left: 8px;
}
| {
"end_byte": 136,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-dynamic-observable-data/table-dynamic-observable-data-example.css"
} |
components/src/components-examples/material/table/table-dynamic-observable-data/table-dynamic-observable-data-example.ts_0_2348 | import {Component} from '@angular/core';
import {DataSource} from '@angular/cdk/collections';
import {Observable, ReplaySubject} from 'rxjs';
import {MatTableModule} from '@angular/material/table';
import {MatButtonModule} from '@angular/material/button';
export interface PeriodicElement {
name: string;
position: ... | {
"end_byte": 2348,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-dynamic-observable-data/table-dynamic-observable-data-example.ts"
} |
components/src/components-examples/material/table/table-dynamic-observable-data/table-dynamic-observable-data-example.html_0_1329 | <div class="demo-button-container">
<button mat-raised-button (click)="addData()" class="demo-button">
Add data
</button>
<button
mat-raised-button
[disabled]="!dataToDisplay.length"
(click)="removeData()"
class="demo-button">
Remove data
</button>
</div>
<table mat-table [dataS... | {
"end_byte": 1329,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-dynamic-observable-data/table-dynamic-observable-data-example.html"
} |
components/src/components-examples/material/table/table-overview/table-overview-example.ts_0_2559 | import {AfterViewInit, Component, ViewChild} from '@angular/core';
import {MatPaginator, MatPaginatorModule} from '@angular/material/paginator';
import {MatSort, MatSortModule} from '@angular/material/sort';
import {MatTableDataSource, MatTableModule} from '@angular/material/table';
import {MatInputModule} from '@angul... | {
"end_byte": 2559,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-overview/table-overview-example.ts"
} |
components/src/components-examples/material/table/table-overview/table-overview-example.html_0_1573 | <mat-form-field>
<mat-label>Filter</mat-label>
<input matInput (keyup)="applyFilter($event)" placeholder="Ex. Mia" #input>
</mat-form-field>
<div class="mat-elevation-z8">
<table mat-table [dataSource]="dataSource" matSort>
<!-- ID Column -->
<ng-container matColumnDef="id">
<th mat-header-cell *m... | {
"end_byte": 1573,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-overview/table-overview-example.html"
} |
components/src/components-examples/material/table/table-overview/table-overview-example.css_0_110 | table {
width: 100%;
}
.mat-mdc-form-field {
font-size: 14px;
width: 100%;
}
td, th {
width: 25%;
}
| {
"end_byte": 110,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-overview/table-overview-example.css"
} |
components/src/components-examples/material/table/table-pagination/table-pagination-example.ts_0_2244 | import {AfterViewInit, Component, ViewChild} from '@angular/core';
import {MatPaginator, MatPaginatorModule} from '@angular/material/paginator';
import {MatTableDataSource, MatTableModule} from '@angular/material/table';
/**
* @title Table with pagination
*/
@Component({
selector: 'table-pagination-example',
sty... | {
"end_byte": 2244,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-pagination/table-pagination-example.ts"
} |
components/src/components-examples/material/table/table-pagination/table-pagination-example.html_0_1270 | <div class="mat-elevation-z8">
<table mat-table [dataSource]="dataSource">
<!-- Position Column -->
<ng-container matColumnDef="position">
<th mat-header-cell *matHeaderCellDef> No. </th>
<td mat-cell *matCellDef="let element"> {{element.position}} </td>
</ng-container>
<!-- Name Column ... | {
"end_byte": 1270,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-pagination/table-pagination-example.html"
} |
components/src/components-examples/material/table/table-pagination/table-pagination-example.css_0_25 | table {
width: 100%;
}
| {
"end_byte": 25,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-pagination/table-pagination-example.css"
} |
components/src/components-examples/material/table/table-sticky-header/table-sticky-header-example.html_0_1152 | <section class="example-container mat-elevation-z8" tabindex="0">
<table mat-table [dataSource]="dataSource">
<!-- Position Column -->
<ng-container matColumnDef="position">
<th mat-header-cell *matHeaderCellDef> No. </th>
<td mat-cell *matCellDef="let element"> {{element.position}} </td>
</n... | {
"end_byte": 1152,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-sticky-header/table-sticky-header-example.html"
} |
components/src/components-examples/material/table/table-sticky-header/table-sticky-header-example.ts_0_1253 | import {Component} from '@angular/core';
import {MatTableModule} from '@angular/material/table';
/**
* @title Table with sticky header
*/
@Component({
selector: 'table-sticky-header-example',
styleUrl: 'table-sticky-header-example.css',
templateUrl: 'table-sticky-header-example.html',
imports: [MatTableModul... | {
"end_byte": 1253,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-sticky-header/table-sticky-header-example.ts"
} |
components/src/components-examples/material/table/table-sticky-header/table-sticky-header-example.css_0_84 | .example-container {
height: 400px;
overflow: auto;
}
table {
width: 100%;
}
| {
"end_byte": 84,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-sticky-header/table-sticky-header-example.css"
} |
components/src/components-examples/material/table/table-dynamic-columns/table-dynamic-columns-example.html_0_670 | <button mat-raised-button (click)="addColumn()"> Add column </button>
<button mat-raised-button (click)="removeColumn()"> Remove column </button>
<button mat-raised-button (click)="shuffle()"> Shuffle </button>
<table mat-table [dataSource]="data" class="mat-elevation-z8">
@for (column of displayedColumns; track col... | {
"end_byte": 670,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-dynamic-columns/table-dynamic-columns-example.html"
} |
components/src/components-examples/material/table/table-dynamic-columns/table-dynamic-columns-example.ts_0_2123 | import {Component} from '@angular/core';
import {MatTableModule} from '@angular/material/table';
import {MatButtonModule} from '@angular/material/button';
export interface PeriodicElement {
name: string;
position: number;
weight: number;
symbol: string;
}
const ELEMENT_DATA: PeriodicElement[] = [
{position:... | {
"end_byte": 2123,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-dynamic-columns/table-dynamic-columns-example.ts"
} |
components/src/components-examples/material/table/table-dynamic-columns/table-dynamic-columns-example.css_0_57 | table {
width: 100%;
}
button {
margin: 16px 8px;
}
| {
"end_byte": 57,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-dynamic-columns/table-dynamic-columns-example.css"
} |
components/src/components-examples/material/table/table-sticky-complex-flex/table-sticky-complex-flex-example.css_0_807 | .example-container {
height: 400px;
overflow: auto;
}
.mat-mdc-table-sticky {
background: #59abfd;
opacity: 1;
}
.example-sticky-toggle-group {
margin: 8px;
}
.mat-column-filler {
padding: 0 8px;
font-size: 10px;
text-align: center;
}
.mat-mdc-header-cell, .mat-mdc-footer-cell, .mat-mdc-cell {
min... | {
"end_byte": 807,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-sticky-complex-flex/table-sticky-complex-flex-example.css"
} |
components/src/components-examples/material/table/table-sticky-complex-flex/table-sticky-complex-flex-example.html_0_3855 | <div>
<button mat-raised-button (click)="tables.push(tables.length)">Add table</button>
<button mat-raised-button (click)="tables.pop()">Remove table</button>
</div>
<div>
Sticky Headers:
<mat-button-toggle-group multiple [value]="['header-1']"
#stickyHeaders="matButtonToggleGroup"
... | {
"end_byte": 3855,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-sticky-complex-flex/table-sticky-complex-flex-example.html"
} |
components/src/components-examples/material/table/table-sticky-complex-flex/table-sticky-complex-flex-example.ts_0_2081 | import {Component} from '@angular/core';
import {MatButtonToggleGroup, MatButtonToggleModule} from '@angular/material/button-toggle';
import {MatTableModule} from '@angular/material/table';
import {MatButtonModule} from '@angular/material/button';
/**
* @title Flex-layout tables with toggle-able sticky headers, foote... | {
"end_byte": 2081,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-sticky-complex-flex/table-sticky-complex-flex-example.ts"
} |
components/src/components-examples/material/table/table-expandable-rows/table-expandable-rows-example.css_0_713 | table {
width: 100%;
}
tr.example-detail-row {
height: 0;
}
tr.example-element-row:not(.example-expanded-row):hover {
background: whitesmoke;
}
tr.example-element-row:not(.example-expanded-row):active {
background: #efefef;
}
.example-element-row td {
border-bottom-width: 0;
}
.example-element-detail {
... | {
"end_byte": 713,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-expandable-rows/table-expandable-rows-example.css"
} |
components/src/components-examples/material/table/table-expandable-rows/table-expandable-rows-example.html_0_2298 | <table mat-table
[dataSource]="dataSource" multiTemplateDataRows
class="mat-elevation-z8">
@for (column of columnsToDisplay; track column) {
<ng-container matColumnDef="{{column}}">
<th mat-header-cell *matHeaderCellDef> {{column}} </th>
<td mat-cell *matCellDef="let element"> {{element[... | {
"end_byte": 2298,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-expandable-rows/table-expandable-rows-example.html"
} |
components/src/components-examples/material/table/table-expandable-rows/table-expandable-rows-example.ts_0_4503 | import {Component} from '@angular/core';
import {animate, state, style, transition, trigger} from '@angular/animations';
import {MatIconModule} from '@angular/material/icon';
import {MatButtonModule} from '@angular/material/button';
import {MatTableModule} from '@angular/material/table';
/**
* @title Table with expan... | {
"end_byte": 4503,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/table/table-expandable-rows/table-expandable-rows-example.ts"
} |
components/src/components-examples/material/list/BUILD.bazel_0_1045 | load("//tools:defaults.bzl", "ng_module", "ng_test_library", "ng_web_test_suite")
package(default_visibility = ["//visibility:public"])
ng_module(
name = "list",
srcs = glob(
["**/*.ts"],
exclude = ["**/*.spec.ts"],
),
assets = glob([
"**/*.html",
"**/*.css",
]),
... | {
"end_byte": 1045,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/list/BUILD.bazel"
} |
components/src/components-examples/material/list/index.ts_0_611 | export {ListOverviewExample} from './list-overview/list-overview-example';
export {ListSectionsExample} from './list-sections/list-sections-example';
export {ListSelectionExample} from './list-selection/list-selection-example';
export {ListSingleSelectionExample} from './list-single-selection/list-single-selection-exam... | {
"end_byte": 611,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/list/index.ts"
} |
components/src/components-examples/material/list/list-single-selection-reactive-form/list-single-selection-form-example.html_0_366 | <form [formGroup]="form">
<mat-selection-list #shoesList [formControl]="shoesControl" name="shoes" [multiple]="false">
@for (shoe of shoes; track shoe) {
<mat-list-option [value]="shoe.value">{{shoe.name}}</mat-list-option>
}
</mat-selection-list>
<p>
Option selected: {{shoesControl.value ? sho... | {
"end_byte": 366,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/list/list-single-selection-reactive-form/list-single-selection-form-example.html"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.