@@ -2,7 +2,7 @@ <h2>Autocomplete</h2>
2
2
3
3
< mat-form-field >
4
4
< mat-label > Computer scientists</ mat-label >
5
- < input matInput [matAutocomplete] ="autocomplete ">
5
+ < input matInput [matAutocomplete] ="autocomplete " / >
6
6
</ mat-form-field >
7
7
8
8
< mat-autocomplete #autocomplete >
@@ -49,9 +49,7 @@ <h3>Standalone</h3>
49
49
50
50
< h3 > Card</ h3 >
51
51
52
- < mat-card >
53
- Simple card
54
- </ mat-card >
52
+ < mat-card > Simple card </ mat-card >
55
53
56
54
< mat-card >
57
55
< mat-card-title > Complicated card</ mat-card-title >
@@ -64,9 +62,7 @@ <h3>Card</h3>
64
62
< button mat-button > LIKE</ button >
65
63
< button mat-button > SHARE</ button >
66
64
</ mat-card-actions >
67
- < mat-card-footer >
68
- Hurray
69
- </ mat-card-footer >
65
+ < mat-card-footer > Hurray </ mat-card-footer >
70
66
</ mat-card >
71
67
72
68
< h2 > Checkbox</ h2 >
@@ -95,15 +91,21 @@ <h2>Chips</h2>
95
91
< h2 > Datepicker</ h2 >
96
92
97
93
< mat-form-field >
98
- < input type ="text " matInput [matDatepicker] ="birthday " placeholder ="Birthday ">
94
+ < input type ="text " matInput [matDatepicker] ="birthday " placeholder ="Birthday " / >
99
95
< mat-datepicker-toggle matSuffix [for] ="birthday "> </ mat-datepicker-toggle >
100
96
< mat-datepicker #birthday > </ mat-datepicker >
101
97
</ mat-form-field >
102
98
103
99
< h3 > Disabled datepicker</ h3 >
104
100
105
101
< mat-form-field >
106
- < input type ="text " disabled matInput [matDatepicker] ="departureDate " placeholder ="Departure date ">
102
+ < input
103
+ type ="text "
104
+ disabled
105
+ matInput
106
+ [matDatepicker] ="departureDate "
107
+ placeholder ="Departure date "
108
+ />
107
109
< mat-datepicker-toggle matSuffix [for] ="departureDate "> </ mat-datepicker-toggle >
108
110
< mat-datepicker #departureDate > </ mat-datepicker >
109
111
</ mat-form-field >
@@ -127,18 +129,18 @@ <h2>Input</h2>
127
129
128
130
< mat-form-field >
129
131
< mat-label > Label</ mat-label >
130
- < input matInput value ="Initial value ">
132
+ < input matInput value ="Initial value " / >
131
133
</ mat-form-field >
132
134
< mat-form-field >
133
- < input matInput placeholder ="Placeholder ">
135
+ < input matInput placeholder ="Placeholder " / >
134
136
</ mat-form-field >
135
137
< mat-form-field floatLabel ="always ">
136
138
< mat-label > Always floating</ mat-label >
137
- < input matInput >
139
+ < input matInput / >
138
140
</ mat-form-field >
139
141
< mat-form-field appearance ="outline ">
140
142
< mat-label > Label</ mat-label >
141
- < input matInput >
143
+ < input matInput / >
142
144
</ mat-form-field >
143
145
< mat-form-field >
144
146
< mat-label > Label</ mat-label >
@@ -150,34 +152,34 @@ <h2>Input</h2>
150
152
</ mat-form-field >
151
153
< mat-form-field appearance ="outline ">
152
154
< mat-label > Label</ mat-label >
153
- < input matInput value ="Initial ">
155
+ < input matInput value ="Initial " / >
154
156
</ mat-form-field >
155
157
156
158
< h3 > Prefix and Suffix</ h3 >
157
159
< mat-form-field appearance ="outline ">
158
160
< span matPrefix > +123 </ span >
159
161
< mat-label > Phone Number</ mat-label >
160
- < input matInput >
162
+ < input matInput / >
161
163
</ mat-form-field >
162
164
< mat-form-field >
163
165
< span matPrefix > +123 </ span >
164
166
< mat-label > Phone Number</ mat-label >
165
- < input matInput >
167
+ < input matInput / >
166
168
</ mat-form-field >
167
169
< mat-form-field appearance ="outline ">
168
170
< span matPrefix > +123 </ span >
169
171
< mat-label > Phone Number</ mat-label >
170
- < input matInput >
172
+ < input matInput / >
171
173
</ mat-form-field >
172
174
< mat-form-field appearance ="outline ">
173
175
< mat-icon matPrefix > calendar_today</ mat-icon >
174
176
< mat-label > Name</ mat-label >
175
- < input matInput >
177
+ < input matInput / >
176
178
</ mat-form-field >
177
179
< mat-form-field >
178
180
< mat-icon matPrefix > calendar_today</ mat-icon >
179
181
< mat-label > Name</ mat-label >
180
- < input matInput >
182
+ < input matInput / >
181
183
</ mat-form-field >
182
184
183
185
< h2 > List</ h2 >
@@ -286,14 +288,14 @@ <h2>Slide-toggle</h2>
286
288
< h2 > Slider</ h2 >
287
289
288
290
< mat-slider >
289
- < input matSliderThumb value ="60 ">
291
+ < input matSliderThumb value ="60 " / >
290
292
</ mat-slider >
291
293
< mat-slider >
292
- < input matSliderThumb value ="50 " disabled >
294
+ < input matSliderThumb value ="50 " disabled / >
293
295
</ mat-slider >
294
296
< mat-slider min ="200 " max ="500 " step ="100 " discrete showTickMarks >
295
- < input value ="300 " matSliderStartThumb >
296
- < input value ="400 " matSliderEndThumb >
297
+ < input value ="300 " matSliderStartThumb / >
298
+ < input value ="400 " matSliderEndThumb / >
297
299
</ mat-slider >
298
300
299
301
< h2 > Snack bar</ h2 >
@@ -308,35 +310,47 @@ <h2>Tabs</h2>
308
310
< mat-tab-group [selectedIndex] ="1 ">
309
311
< mat-tab label ="Overview ">
310
312
< h3 > The overview</ h3 >
311
- < p > Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque assumenda doloribus,
312
- rerum temporibus fugit aliquid adipisci aliquam eaque sint voluptas dolore cumque voluptatibus
313
- quam quod. Quasi adipisci officia similique in?</ p >
314
- < p > Deleniti neque placeat magnam, voluptatibus eligendi illo consectetur dolore minima dolorem
313
+ < p >
314
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque assumenda doloribus, rerum
315
+ temporibus fugit aliquid adipisci aliquam eaque sint voluptas dolore cumque voluptatibus quam
316
+ quod. Quasi adipisci officia similique in?
317
+ </ p >
318
+ < p >
319
+ Deleniti neque placeat magnam, voluptatibus eligendi illo consectetur dolore minima dolorem
315
320
nemo suscipit dolorum accusantium? Numquam officia culpa itaque qui repudiandae nulla,
316
- laboriosam nihil molestiae ad aut perferendis alias amet.</ p >
317
- < p > Officia esse temporibus consequatur ipsa! Veritatis alias facere amet reiciendis sint
318
- impedit atque iste doloremque dolor? Ullam, aspernatur? Alias, fuga! At dolorum odio
319
- molestiae laudantium nihil alias inventore veritatis voluptatum.</ p >
321
+ laboriosam nihil molestiae ad aut perferendis alias amet.
322
+ </ p >
323
+ < p >
324
+ Officia esse temporibus consequatur ipsa! Veritatis alias facere amet reiciendis sint impedit
325
+ atque iste doloremque dolor? Ullam, aspernatur? Alias, fuga! At dolorum odio molestiae
326
+ laudantium nihil alias inventore veritatis voluptatum.
327
+ </ p >
320
328
< button mat-raised-button color ="primary "> See the overview</ button >
321
329
</ mat-tab >
322
330
< mat-tab >
323
331
< ng-template mat-tab-label > API docs</ ng-template >
324
332
< h3 > The API docs</ h3 >
325
- < p > Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorum facere quasi natus rerum
333
+ < p >
334
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorum facere quasi natus rerum
326
335
quae, nisi, quis, voluptate assumenda necessitatibus labore illo. Illum ipsum consequatur,
327
- excepturi aspernatur odio veritatis sint perferendis!</ p >
328
- < p > Dicta ex laborum repudiandae nesciunt. Ea asperiores quo totam velit! Aliquid cum laudantium
336
+ excepturi aspernatur odio veritatis sint perferendis!
337
+ </ p >
338
+ < p >
339
+ Dicta ex laborum repudiandae nesciunt. Ea asperiores quo totam velit! Aliquid cum laudantium
329
340
officiis molestias, excepturi odio, autem magni dignissimos perspiciatis, amet qui! Dolorem
330
- molestiae similique necessitatibus cupiditate ipsa aspernatur?</ p >
341
+ molestiae similique necessitatibus cupiditate ipsa aspernatur?
342
+ </ p >
331
343
< button mat-raised-button color ="accent "> See the API docs</ button >
332
344
</ mat-tab >
333
345
334
346
< mat-tab >
335
347
< ng-template mat-tab-label > Examples</ ng-template >
336
348
< h3 > The examples</ h3 >
337
- < p > Lorem ipsum dolor sit amet consectetur adipisicing elit. Modi animi saepe, optio sequi
349
+ < p >
350
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Modi animi saepe, optio sequi
338
351
accusantium, eos perspiciatis reprehenderit, nobis exercitationem sunt ducimus molestiae
339
- laborum inventore itaque incidunt. Neque dolorum adipisci quidem.</ p >
352
+ laborum inventore itaque incidunt. Neque dolorum adipisci quidem.
353
+ </ p >
340
354
< button mat-raised-button color ="warn "> See the examples</ button >
341
355
</ mat-tab >
342
356
</ mat-tab-group >
@@ -349,9 +363,7 @@ <h3>The examples</h3>
349
363
350
364
< h2 > Paginator</ h2 >
351
365
352
- < mat-paginator [length] ="100 "
353
- [pageSizeOptions] ="[5, 10, 25, 100] "
354
- aria-label ="Select page ">
366
+ < mat-paginator [length] ="100 " [pageSizeOptions] ="[5, 10, 25, 100] " aria-label ="Select page ">
355
367
</ mat-paginator >
356
368
357
369
< h2 > Toolbar</ h2 >
@@ -425,8 +437,8 @@ <h2>CDK Table</h2>
425
437
< cdk-cell *cdkCellDef ="let element "> {{element.symbol}}</ cdk-cell >
426
438
</ ng-container >
427
439
428
- < cdk-header-row *cdkHeaderRowDef ="tableColumns "/>
429
- < cdk-row *cdkRowDef ="let row; columns: tableColumns; "/>
440
+ < cdk-header-row *cdkHeaderRowDef ="tableColumns " />
441
+ < cdk-row *cdkRowDef ="let row; columns: tableColumns; " />
430
442
</ cdk-table >
431
443
432
444
< h2 > Material Table</ h2 >
@@ -452,8 +464,8 @@ <h2>Material Table</h2>
452
464
< mat-cell *matCellDef ="let element "> {{element.symbol}}</ mat-cell >
453
465
</ ng-container >
454
466
455
- < mat-header-row *matHeaderRowDef ="tableColumns "/>
456
- < mat-row *matRowDef ="let row; columns: tableColumns; "/>
467
+ < mat-header-row *matHeaderRowDef ="tableColumns " />
468
+ < mat-row *matRowDef ="let row; columns: tableColumns; " />
457
469
</ mat-table >
458
470
459
471
< h2 > Native table with sticky header and footer</ h2 >
@@ -541,9 +553,7 @@ <h2>Focus trap</h2>
541
553
542
554
< h2 > Badge</ h2 >
543
555
544
- < button mat-raised-button matBadge ="99 ">
545
- Clicky thing
546
- </ button >
556
+ < button mat-raised-button matBadge ="99 "> Clicky thing</ button >
547
557
548
558
< h2 > Drag and Drop</ h2 >
549
559
< button cdkDrag > Drag me around</ button >
@@ -561,6 +571,15 @@ <h2>Virtual scroll</h2>
561
571
</ div >
562
572
</ cdk-virtual-scroll-viewport >
563
573
574
+ < cdk-virtual-scroll-viewport autosize class ="universal-viewport ">
575
+ < div
576
+ *cdkVirtualFor ="let size of virtualScrollData; let i = index "
577
+ [style.height.px] ="i % 2 == 0 ? 50 : 25 "
578
+ >
579
+ Item #{{i}}
580
+ </ div >
581
+ </ cdk-virtual-scroll-viewport >
582
+
564
583
< h2 > YouTube player</ h2 >
565
584
< youtube-player videoId ="dQw4w9WgXcQ "> </ youtube-player >
566
585
@@ -569,52 +588,69 @@ <h2>Google Map</h2>
569
588
< google-map height ="400px " width ="750px " style ="position: relative ">
570
589
< map-marker [position] ="{lat: 24, lng: 12} "> </ map-marker >
571
590
< map-info-window > Hello</ map-info-window >
572
- < map-polyline [options] ="{
591
+ < map-polyline
592
+ [options] ="{
573
593
path: [{lat: 25, lng: 26}, {lat: 26, lng: 27}, {lat: 30, lng: 34}],
574
594
strokeColor: 'grey',
575
595
strokeOpacity: 0.8
576
- } "> </ map-polyline >
577
- < map-polygon [options] ="{
596
+ } "
597
+ > </ map-polyline >
598
+ < map-polygon
599
+ [options] ="{
578
600
paths: [{lat: 20, lng: 21}, {lat: 22, lng: 23}, {lat: 24, lng: 25}],
579
601
strokeColor: 'grey',
580
602
strokeOpacity: 0.8
581
- } "> </ map-polygon >
582
- < map-rectangle [options] ="{
603
+ } "
604
+ > </ map-polygon >
605
+ < map-rectangle
606
+ [options] ="{
583
607
bounds: {east: 30, north: 15, west: 10, south: -5},
584
608
strokeColor: 'grey',
585
609
strokeOpacity: 0.8
586
- } "> </ map-rectangle >
587
- < map-circle [options] ="{
610
+ } "
611
+ > </ map-rectangle >
612
+ < map-circle
613
+ [options] ="{
588
614
center: {lat: 19, lng: 20},
589
615
radius: 500000,
590
616
strokeColor: 'grey',
591
617
strokeOpacity: 0.8
592
- } "> </ map-circle >
618
+ } "
619
+ > </ map-circle >
593
620
< map-ground-overlay
594
621
url ="https://angular.io/assets/images/logos/angular/angular.svg "
595
622
[bounds] ="{
596
623
east: 30,
597
624
north: 15,
598
625
west: 10,
599
626
south: -5
600
- } "> </ map-ground-overlay >
601
- < map-kml-layer
602
- url ="https://developers.google.com/maps/documentation/javascript/examples/kml/westcampus.kml "> </ map-kml-layer >
603
- < map-traffic-layer > </ map-traffic-layer >
604
- < map-transit-layer > </ map-transit-layer >
605
- < map-bicycling-layer > </ map-bicycling-layer >
606
- < map-heatmap-layer [data] ="[
627
+ } "
628
+ > </ map-ground-overlay >
629
+ < map-kml-layer
630
+ url ="https://developers.google.com/maps/documentation/javascript/examples/kml/westcampus.kml "
631
+ > </ map-kml-layer >
632
+ < map-traffic-layer > </ map-traffic-layer >
633
+ < map-transit-layer > </ map-transit-layer >
634
+ < map-bicycling-layer > </ map-bicycling-layer >
635
+ < map-heatmap-layer
636
+ [data] ="[
607
637
{lat: 37.782, lng: -122.447},
608
638
{lat: 37.782, lng: -122.445},
609
639
{lat: 37.782, lng: -122.443}
610
- ] "> </ map-heatmap-layer >
611
-
612
- < map-marker-clusterer imagePath ="https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m ">
613
- < map-marker [position] ="{lat: 24, lng: 12} "> </ map-marker >
614
- < map-marker [position] ="{lat: 12, lng: 24} "> </ map-marker >
615
- < map-marker [position] ="{lat: 12, lng: 12} "> </ map-marker >
616
- </ map-marker-clusterer >
640
+ ] "
641
+ > </ map-heatmap-layer >
642
+
643
+ < map-marker-clusterer
644
+ imagePath ="https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m "
645
+ >
646
+ < map-marker [position] ="{lat: 24, lng: 12} "> </ map-marker >
647
+ < map-marker [position] ="{lat: 12, lng: 24} "> </ map-marker >
648
+ < map-marker [position] ="{lat: 12, lng: 12} "> </ map-marker >
649
+ </ map-marker-clusterer >
617
650
</ google-map >
618
651
652
+ < h2 > Popover edit</ h2 >
653
+ < cdk-popover-edit-cdk-table-example > </ cdk-popover-edit-cdk-table-example >
654
+
619
655
<!-- Element used to determine when rendering is done. -->
620
656
< div class ="render-marker "> </ div >
0 commit comments