Skip to content

Commit 9d7d805

Browse files
committed
fixed html snippets
1 parent 64a0f02 commit 9d7d805

File tree

3 files changed

+29
-24
lines changed

3 files changed

+29
-24
lines changed

CHANGELOG.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
1+
<a name="7.0.1"></a>
2+
3+
# 7.0.1 (2019-03-09)
4+
5+
* Added documentation to [`README.md`](https://github.com/hardikpthv/vscode-ng-material-snippets/blob/master/README.md) for new snippets
6+
* Added HTML snippets for
7+
* `<mat-table>` control
8+
* `<mat-cell>` control
9+
110
<a name="7.0.0"></a>
211

312
# 7.0.0 (2018-12-08)
413

5-
* Updated documentation to [`README.md`](https://github.com/hardikpthv/vscode-ng-material-snippets/blob/master/README.md) for new snippets
14+
* Updated documentation [`README.md`](https://github.com/hardikpthv/vscode-ng-material-snippets/blob/master/README.md) for new snippets
615
* Added HTML snippets for
716
* `matRipple` directive
817
* `matRippleColor` directive

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ 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 |
9291

9392
### TypeScript Snippets
9493

snippets/html.json

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -515,36 +515,33 @@
515515
"body": ["<mat-chip>${1:val}</mat-chip>"],
516516
"description": "<mat-chip> control for <mat-chip-list>"
517517
},
518-
"DataTable": {
518+
"matTable": {
519519
"prefix": "a-md-data-table",
520520
"body": [
521521
"<mat-table [dataSource]=\"${1:dataSource}\">",
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>",
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>",
532531
"</mat-table>"
533532
],
534-
"description": "DataTable"
533+
"description": "<mat-table> control"
535534
},
536-
537-
"MatTableColumn": {
535+
"matTableColumn": {
538536
"prefix": "a-md-data-table-column",
539537
"body": [
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}"
538+
"<ng-container matColumnDef=\"${1:columnName}\">",
539+
"\t<mat-header-cell *matHeaderCellDef> ${2:columnHeaderLabel}</mat-header-cell>",
540+
"\t<mat-cell *matCellDef=\"let element\"> {{element.${3:propertyName}}} </mat-cell>",
541+
"</ng-container>\n",
542+
"${4:a-md-data-table-column}",
543+
"<!-- press ctrl + space to add more column snippet or delete this line -->\n"
547544
],
548-
"description": ""
545+
"description": "<mat-header-cell> column for </mat-table> control "
549546
}
550547
}

0 commit comments

Comments
 (0)