Skip to content

Commit 64a0f02

Browse files
authored
Merge pull request #1 from techraiders/master
Adds dataTable snippet.
2 parents 0c96a8a + 6391e43 commit 64a0f02

File tree

2 files changed

+20
-17
lines changed

2 files changed

+20
-17
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ Start typing `a-md-*` and hit `enter`, the snippet spreads out.
8888
| a-md-tree | `<mat-tree>` control |
8989
| a-md-tree-node | `<mat-tree-node>` control |
9090
| a-md-tree-nested-node | `<mat-nested-tree-node>` control |
91+
| a-md-data-table | `<mat-table>` control |
9192

9293
### TypeScript Snippets
9394

snippets/html.json

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -519,30 +519,32 @@
519519
"prefix": "a-md-data-table",
520520
"body": [
521521
"<mat-table [dataSource]=\"${1:dataSource}\">",
522-
"\t<ng-container matColumnDef=\"${2:columnName}\">",
523-
"\t\t<mat-header-cell *matHeaderCellDef> ${3:columnHeaderLabel}",
524-
"\t\t</mat-header-cell>",
525-
"\t\t<mat-cell *matCellDef=\"let element\"> {{element.${4:propertyName}}} </mat-cell>",
526-
"\t</ng-container>\n",
527-
"\t${5:a-md-data-table-column}",
528-
"\t<!-- press ctrl + space to add more column snippet or delete this line -->\n",
529-
"\t<mat-header-row *matHeaderRowDef=\"displayedColumns\"></mat-header-row>",
530-
"\t<mat-row *matRowDef=\"let row; columns: displayedColumns;\"></mat-row>",
522+
" <ng-container matColumnDef=\"${2:columnName}\">",
523+
" <mat-header-cell *matHeaderCellDef> ${3:columnHeaderLabel}",
524+
" </mat-header-cell>",
525+
" <mat-cell *matCellDef=\"let element\"> {{element.${4:propertyName}}} </mat-cell>",
526+
" </ng-container>",
527+
"",
528+
"${5:a-md-data-table-column} <!-- press ctrl + space to add more column snippet or delete this line -->",
529+
"",
530+
" <mat-header-row *matHeaderRowDef=\"displayedColumns\"></mat-header-row>",
531+
" <mat-row *matRowDef=\"let row; columns: displayedColumns;\"></mat-row>",
531532
"</mat-table>"
532533
],
533-
"description": "<mat-table> control"
534+
"description": "DataTable"
534535
},
535536

536537
"MatTableColumn": {
537538
"prefix": "a-md-data-table-column",
538539
"body": [
539-
"<ng-container matColumnDef=\"${1:columnName}\">",
540-
"\t<mat-header-cell *matHeaderCellDef> ${2:columnHeaderLabel}</mat-header-cell>",
541-
"\t<mat-cell *matCellDef=\"let element\"> {{element.${3:propertyName}}} </mat-cell>",
542-
"</ng-container>\n",
543-
"${4:a-md-data-table-column}",
544-
"\t<!-- press ctrl + space to add more column snippet or delete this line -->\n",
540+
" <ng-container matColumnDef=\"${1:columnName}\">",
541+
" <mat-header-cell *matHeaderCellDef> ${2:columnHeaderLabel}",
542+
" </mat-header-cell>",
543+
" <mat-cell *matCellDef=\"let element\"> {{element.${3:propertyName}}} </mat-cell>",
544+
" </ng-container>",
545+
"",
546+
"${4:a-md-data-table-column}"
545547
],
546-
"description": "<mat-header-cell> column for </mat-table> control "
548+
"description": ""
547549
}
548550
}

0 commit comments

Comments
 (0)